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 > removing folders o.o

#151632 - darkchild - Sat Mar 01, 2008 7:06 pm

Hello,

Does the remove function work with folders?

or should I use rmdir or something?

#151645 - Quirky - Sat Mar 01, 2008 8:58 pm

rmdir didn't link for me - unlink works, I think.

#151647 - darkchild - Sat Mar 01, 2008 9:25 pm

does unlink delete the folder and it's subfolders?
or does it only empty a clean folder?

#151649 - Quirky - Sat Mar 01, 2008 9:29 pm

Normally (on Linux at least), it only applies to files, you'd use rmdir there. On the DS unlink applies to empty directories too. You have to remove the contents of the directory recursively though.

#151652 - darkchild - Sat Mar 01, 2008 11:24 pm

so resumingly, it doesn't delete folders with files :)
gotcha! thanks! :D