Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

[SOLVED] Get all files in the content directory

$
0
0

@Toemsel92 wrote:

Hello!

Currently porting my app to Android. While
Directory.GetFiles(path)
worked on UWP like a dream, it does not work on Android. I guess because on Android it starts from the root folder of your phone.

How am I able to get all files out of my 'content' folder?
My aim is to get all .xml files in my content (or sub) folder to load them on demand.

The path:
System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal)
Has no content folder. Parent folder of ↑ has 'cache, data and lib' as a subfolder. Can't find the content folder.

Thanks in advance.

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles