MLIB
Loading...
Searching...
No Matches
rdir.h File Reference

More...

#include <string>

Go to the source code of this file.

Functions

int mlib::r_mkdir (const std::string &dir)
 Recursively create a new directory.
 
int mlib::r_rmdir (const std::string &dir)
 Recursively remove a directory.
 

Detailed Description

  • Recursive directory functions

(c) Mircea Neacsu 2019

Function Documentation

◆ r_mkdir()

int mlib::r_mkdir ( const std::string &  dir)

Recursively create a new directory.

Parameters
dirpath for new directory (UTF-8 encoded)
Returns
- 0 if new directory was created
  • ENOENT if path was not found
  • EEXIST if path already exists

◆ r_rmdir()

int mlib::r_rmdir ( const std::string &  dir)

Recursively remove a directory.

Parameters
dirpath for directory to remove (UTF-8 encoded)
Returns
- 0 if new directory was removed
  • ENOTEMPTY if directory is not empty