开发者

C# How to get files from an xbox directory

开发者 https://www.devze.com 2023-01-22 15:45 出处:网络
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

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

精彩评论

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

关注公众号