aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-06-05 14:28:40 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:32 +0200
commit31afceeade6dd852a8b7a71805b21a20e502229a (patch)
tree54c08d6f3970802260e08f37de24fe40cae201e0 /include
parent0c287d0bbf28618cfe65807f7c858d19136e5854 (diff)
Add sibs init to init project in existing directory
Diffstat (limited to 'include')
-rw-r--r--include/FileUtil.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/FileUtil.hpp b/include/FileUtil.hpp
index 7288426..b808573 100644
--- a/include/FileUtil.hpp
+++ b/include/FileUtil.hpp
@@ -21,7 +21,7 @@ namespace sibs
using FileString = std::basic_string<_tinydir_char_t, std::char_traits<_tinydir_char_t>, std::allocator<_tinydir_char_t>>;
#if OS_FAMILY == OS_FAMILY_POSIX
-#define toUtf8(input) input
+ #define toUtf8(input) input
FileString toFileString(const std::string &utf8Str);
FileString toFileString(const StringView &utf8Str);
#else
@@ -49,6 +49,7 @@ namespace sibs
void walkDirFiles(const _tinydir_char_t *directory, FileWalkCallbackFunc callbackFunc);
void walkDirFilesRecursive(const _tinydir_char_t *directory, FileWalkCallbackFunc callbackFunc);
Result<StringView> getFileContent(const _tinydir_char_t *filepath);
+ Result<bool> fileWrite(const _tinydir_char_t *filepath, StringView data);
Result<bool> fileOverwrite(const _tinydir_char_t *filepath, StringView data);
Result<FileString> getHomeDir();
Result<FileString> getCwd();