From 31afceeade6dd852a8b7a71805b21a20e502229a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 5 Jun 2018 14:28:40 +0200 Subject: Add sibs init to init project in existing directory --- include/FileUtil.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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 getFileContent(const _tinydir_char_t *filepath); + Result fileWrite(const _tinydir_char_t *filepath, StringView data); Result fileOverwrite(const _tinydir_char_t *filepath, StringView data); Result getHomeDir(); Result getCwd(); -- cgit v1.2.3