123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|657|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> Finding file attributes?

Sun, 14 Oct 2007, 10:16
spinal
Someone suggested that I add a check for hidden files in my menu. Straight forward I thought, but I'm not having any luck.


When reading the directory, I'm using this to check if the name is a folder or file.


From what I have read ona a couplde of websites, I SHOULD be able to use st.st_attr to get the file attributes. However I get this error when compiling -

'struct stat' has no member named 'st_attr'

Am I doing something wrong, or is there a different way to check if a file is hidden?

-=-=-
Check out my excellent homepage!
Sun, 14 Oct 2007, 17:27
spinal
DS not PSP
Mon, 15 Oct 2007, 17:23
spinal
Thanks for the help smith. It's one of the many things that i'm stuck on at the moment.

-=-=-
Check out my excellent homepage!
Sat, 20 Oct 2007, 18:20
spinal
I don't get it, it doesn't work on the ds at least.
I'm coding on a windows machine (and emulating the ds on it) and the card im using on the ds is fat32. I guess unix is the wrond direction?

-=-=-
Check out my excellent homepage!
Sun, 21 Oct 2007, 04:04
spinal
desmume supports fat, its what im testing my menu one. the emulator is not compatible enough to actually load a rom, but it displays the file list and can navigate directories just fine.

what i meant was that hidden files in fat/fat32 do not start with a '.'

-=-=-
Check out my excellent homepage!
Mon, 22 Oct 2007, 03:41
spinal
I'm not using any image, it just works. I'm using DeSmuMe 0.7.1 if that helps.

-=-=-
Check out my excellent homepage!