I am trying to get a list of all files in a specific xbox directory as shown below, however I get a 'System.NotSupportedException' - Additional information: The given path's f开发者_如何学编程ormat is not supported.
var path = @"XE:\MyDirectory";
var files = Directory.GetFiles(path);
Does anyone know a way around it? Thanks
There's nothing built into the XNA Framework to allow you to do this. For getting the file names you can't use the GetFileNames method of the StorageContainer class?
精彩评论