diff options
author | dec05eba <dec05eba@protonmail.com> | 2017-12-10 01:10:48 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2017-12-10 01:12:08 +0100 |
commit | 1d3e221a7a20bfd03517e3ae1e35e4a309a69b6a (patch) | |
tree | fdb38039d12cf38e9ac6102118727b78437cf3db /include/FileUtil.hpp | |
parent | 2ed7d0b09caa872e44e2eb09b09b2387e93f9b34 (diff) |
Add support for dependencies in global lib dir
Global lib dir is located at ~/.sibs/lib
TODO: If global lib dir doesn't exist, download it from github/server
Diffstat (limited to 'include/FileUtil.hpp')
-rw-r--r-- | include/FileUtil.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/FileUtil.hpp b/include/FileUtil.hpp index 4083cb1..5a0bbc3 100644 --- a/include/FileUtil.hpp +++ b/include/FileUtil.hpp @@ -18,9 +18,12 @@ namespace sibs }; FileType getFileType(const char *path); + void walkDir(const char *directory, FileWalkCallbackFunc callbackFunc); 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); + const char* getHomeDir(); } #endif //SIBS_FILEUTIL_HPP |