- Recursive directory functions
More...
#include <string>
Go to the source code of this file.
|
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.
|
|
- Recursive directory functions
(c) Mircea Neacsu 2019
◆ r_mkdir()
int mlib::r_mkdir |
( |
const std::string & |
dir | ) |
|
Recursively create a new directory.
- Parameters
-
dir | path 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
-
dir | path for directory to remove (UTF-8 encoded) |
- Returns
- - 0 if new directory was removed
- ENOTEMPTY if directory is not empty