gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > CHmod?

#151922 - darkchild - Thu Mar 06, 2008 6:17 pm

is there some sort of way to make a "Chmod" to a file or folder on the dS?

#151936 - tepples - Thu Mar 06, 2008 9:54 pm

Under the FAT file system, what would you want to do with chmod? The only bit that has the same meaning on UNIX (where chmod came from) and DOS/Windows (where FAT came from) is the user-writable bit.

Are you trying to play with the hidden and system bits? I know the customized gba_nds_fat used by DSOrganize can play with those.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#151950 - darkchild - Fri Mar 07, 2008 12:03 am

my problem is that, I am trying to make folders with mkdir and it usually fails, but if I make it in a subfolder of a previous folder I created, it works :O

just wondering... >.> might be something with the attributes -_-'

#151953 - simonjhall - Fri Mar 07, 2008 12:10 am

Can you give an example? Do you mean that if you make a directory on the DS inside another directory made on the DS, it'll fail?
I do a recursive directory-building thing in Q2 and that seems to work... I'm using the libfat from r21.
_________________
Big thanks to everyone who donated for Quake2