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,913
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
  • Psionic Roshambo @ Psionic Roshambo:
    No no continue, I hear these things women say so often I decided to start counting
  • K3Nv2 @ K3Nv2:
    I tried that new Pepsi lime it just taste like pepsi
  • DTApple @ DTApple:
    With lime, right?
  • K3Nv2 @ K3Nv2:
    Just pepsi lol
  • K3Nv2 @ K3Nv2:
    Oh yeah it's D-Days 80th anniversary today
  • BigOnYa @ BigOnYa:
    I drink the Coke with lime all the time, in my Spiced rum (Captain Morgans) I hate pepsi
  • K3Nv2 @ K3Nv2:
    Probably better just to jizz a lime squeeze inside it
  • DinohScene @ DinohScene:
    volvic > anything else
    +1
  • K3Nv2 @ K3Nv2:
    My piss is water
  • BigOnYa @ BigOnYa:
    That looks like the router i just got from microcenter. Spectrum wanted to charge me $7 a month for a wifi router, so I said no thank you and just bought one, I paid like $65 tho
  • K3Nv2 @ K3Nv2:
    Linksys?
  • BigOnYa @ BigOnYa:
    Yea its Linksys, but not sure if same model, has 4 antennas
  • K3Nv2 @ K3Nv2:
    6gbps and two usb ports that supports ntfs is pretty solid dont care if it's reconditioned for $55
  • K3Nv2 @ K3Nv2:
    Just trying to figure out if it's vpn supported
  • K3Nv2 @ K3Nv2:
    I could probably set it up like a nas device
  • K3Nv2 @ K3Nv2:
    TP your router
    +1
  • K3Nv2 @ K3Nv2:
    Unless @Psionic Roshambo can convince me to spend $100 on a better option I'm probably going with it
  • BigOnYa @ BigOnYa:
    Works great for me, all i need. Can go way back on edge of property and still get 3/5 bars. And it let me setup IP Vanish on it no problem.
  • K3Nv2 @ K3Nv2:
    Google fibers router sucks keeps randomly blocking websites
  • BigOnYa @ BigOnYa:
    Does it say "Unexpected Database Error"?
  • K3Nv2 @ K3Nv2:
    Might as well 403
    +1
  • K3Nv2 @ K3Nv2:
    I yell at my isp like listen if I get a virus that's on me stop trying to protect me
    +1
    K3Nv2 @ K3Nv2: I yell at my isp like listen if I get a virus that's on me stop trying to protect me +1