diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-04 20:21:45 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:58 +0200 |
commit | f1c219b6322427fd2d5d97df17fe684fbfe45afa (patch) | |
tree | 379da26a9a06144cbe054dd21a465a39f3f17e9c /include | |
parent | 444b5725b125e5154a571a1542cbb5a7ca58e29b (diff) |
Return a string for a getFileData
Diffstat (limited to 'include')
-rw-r--r-- | include/FileUtil.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/FileUtil.hpp b/include/FileUtil.hpp index 0108b24..f2a1799 100644 --- a/include/FileUtil.hpp +++ b/include/FileUtil.hpp @@ -61,7 +61,7 @@ namespace sibs void walkDirFiles(const _tinydir_char_t *directory, FileWalkCallbackFunc callbackFunc); bool walkDirFilesRecursive(const _tinydir_char_t *directory, FileWalkCallbackFunc callbackFunc); bool walkDirFilesRecursiveSortTimestamp(const _tinydir_char_t *directory, SortedFileWalkCallbackFunc callbackFunc); - Result<StringView> getFileContent(const _tinydir_char_t *filepath); + Result<std::string> 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(); |