Add recursive mkpath() and makepath(), works like mkdir -p

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-07-09 01:25:19 +02:00
1 parent c5366a33da
commit 1561e7567e
4 files changed
+132 -1

No files matched your search

+8
View File
@@ -86,6 +86,14 @@ Generic Functions
`dst` is allowed to be `NULL` to be able to read and discard `len`
bytes from `src`.
- `makepath(dir)`
Create all components of the specified directory.
- `mkpath(dir, mode)`
Like `makepath()`, but also takes a `mode_t` permission mode argument.
- `movefile(src, dst)`
Like `copyfile()`, but renames `src` to `dst`, or recreates symlink