Homebrew Homebrew app Help Finding a Library to Create Directories (on SD)

  • Thread starter Thread starter W3SLAV
  • Start date Start date
  • Views Views 1,120
  • Replies Replies 2

W3SLAV

Member
Newcomer
Joined
May 18, 2020
Messages
24
Reaction score
25
Trophies
0
Age
36
XP
228
Country
United States
Hi, I was wondering if anyone knew of a good library for creating directories on nds/dsi.
 
Like to just make a directory in C / C++? You don't need any special library besides just the normal libfat that comes with libnds, just do:

Code:
mkdir("/path/to/dir", 0777);

(note the 0777 for the permissions, not 777, the 0 makes it octal)

You should just need to include the dirent.h header for that:

Code:
#include <dirent.h>
 

Site & Scene News

Popular threads in this forum