kazo I think I may have seen you asking for a corrupted array somewhere...
Backslashes as suggested aren't cross platform, but rather just slashes (/), also, why didn't you just read the current dir into a variable?
/* read a directory */
char cur_dir;
function read_dir() {
cur_dir = (Path.GetPathRoot(filePaths[0]) + "/data/NDS Music Player/");
}
if (!Directory.Exists( read_dir(cur_dir) )
{
doesn't exists..
}
else
{
does exist..
}
Assuming directory.exists is a custom function which will look into the given directory inside.
Of course this is pseudo C, but the "directory seek" should happen once you call read_dir();, this might not be correct at all, but I think it is a good idea..
Backslashes as suggested aren't cross platform, but rather just slashes (/), also, why didn't you just read the current dir into a variable?
/* read a directory */
char cur_dir;
function read_dir() {
cur_dir = (Path.GetPathRoot(filePaths[0]) + "/data/NDS Music Player/");
}
if (!Directory.Exists( read_dir(cur_dir) )
{
doesn't exists..
}
else
{
does exist..
}
Assuming directory.exists is a custom function which will look into the given directory inside.
Of course this is pseudo C, but the "directory seek" should happen once you call read_dir();, this might not be correct at all, but I think it is a good idea..