aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Archive.hpp1
-rw-r--r--include/FileUtil.hpp4
2 files changed, 4 insertions, 1 deletions
diff --git a/include/Archive.hpp b/include/Archive.hpp
index 6d6a55d..2545f77 100644
--- a/include/Archive.hpp
+++ b/include/Archive.hpp
@@ -8,6 +8,7 @@ namespace sibs
class Archive
{
public:
+ // Note: renames root directory in archive to @destination
static Result<bool> extract(const char *source, const char *destination);
};
}
diff --git a/include/FileUtil.hpp b/include/FileUtil.hpp
index 8407a36..5b91aad 100644
--- a/include/FileUtil.hpp
+++ b/include/FileUtil.hpp
@@ -22,9 +22,11 @@ namespace sibs
void walkDirFiles(const char *directory, FileWalkCallbackFunc callbackFunc);
void walkDirFilesRecursive(const char *directory, FileWalkCallbackFunc callbackFunc);
Result<StringView> getFileContent(const char *filepath);
- bool fileOverwrite(const char *filepath, StringView data);
+ Result<bool> fileOverwrite(const char *filepath, StringView data);
const char* getHomeDir();
Result<std::string> getCwd();
+ // Note: Will not delete created directories if this operation fails for some reason
+ Result<bool> createDirectoryRecursive(const char *path);
}
#endif //SIBS_FILEUTIL_HPP