diff options
Diffstat (limited to 'zen/file_handling.h')
-rw-r--r-- | zen/file_handling.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/zen/file_handling.h b/zen/file_handling.h index 5739dc2a..a0bd9b5b 100644 --- a/zen/file_handling.h +++ b/zen/file_handling.h @@ -55,9 +55,13 @@ void renameFile(const Zstring& oldName, const Zstring& newName); //throw FileErr bool supportsPermissions(const Zstring& dirname); //throw FileError, derefernces symlinks -//creates superdirectories automatically: -void makeDirectory(const Zstring& directory); //throw FileError; do nothing if directory already exists! -void makeNewDirectory(const Zstring& directory, const Zstring& templateDir, bool copyFilePermissions); //throw FileError, ErrorTargetExisting +//if parent directory not existing: create recursively: +void makeDirectory(const Zstring& directory, bool failIfExists = false); //throw FileError, ErrorTargetExisting + +//fail if already existing or parent not existing: +//directory should not end with path separator +//templateDir may be empty +void makeDirectoryPlain(const Zstring& directory, const Zstring& templateDir, bool copyFilePermissions); //throw FileError, ErrorTargetExisting, ErrorTargetPathMissing struct FileAttrib { |