开发者

C# How to get files from an xbox directory

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜