I've tried using the filesystem API, but it's not working form me.
When I do fs.getCurrentPath() I get the folder where the script editor is located. Weird.
Here it is a stripped example of what I'm doing:
Code: Select all
string myFolder= 'D:/music/dev/myfolder';
filesystem fs;
bool ok = fs.changeCurrentPath(myFolder);
if (ok) {
print("Changed path!");
array<string> files = fs.getFiles();
for (uint n=0; n < files.length; n++) {
print(files[n]);
}
}