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

Pk11

A catgirl with a DSi
Member
Joined
Jun 26, 2019
Messages
1,285
Trophies
1
Age
22
Location
米国
Website
xn--rck9c.xn--tckwe
XP
3,907
Country
United States
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

General chit-chat
Help Users
  • BakerMan
    I rather enjoy a life of taking it easy. I haven't reached that life yet though.
    BakerMan @ BakerMan: now i'm not gay, but hear me out