cxong / tinydir

Lightweight, portable and easy to integrate C directory and file reader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

enhancment: create directory

fundies opened this issue · comments

I need to create a directory and I see no cross platform way of doing it without boost

commented

Under Linux and OSX (BSD), there's a mkdir function. Under Windows there's _mkdir. Making this available should be easy.

There's a few other issues though, such as permissions (a bit different under Windows, what's the default permission for new folders, 0755?) and recursive creation i.e. mkdir -p.

http://stackoverflow.com/questions/10356712/mkdir-windows-vs-linux