diff options
| author | Martin Ridgers <[email protected]> | 2021-09-16 16:33:28 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-09-16 16:33:28 +0200 |
| commit | df3c963bedfcda2a080c13dd63fdc4f9c6bc7691 (patch) | |
| tree | 671b5851128ad680d2487d1d4c3eff487d8c1693 /zencore/filesystem.cpp | |
| parent | Added some lawns to aid orientation within the file (diff) | |
| download | zen-df3c963bedfcda2a080c13dd63fdc4f9c6bc7691.tar.xz zen-df3c963bedfcda2a080c13dd63fdc4f9c6bc7691.zip | |
The wchar_t variants of directory functions are now only enabled on Windows
Diffstat (limited to 'zencore/filesystem.cpp')
| -rw-r--r-- | zencore/filesystem.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp index 3e00f596a..1ddde9d88 100644 --- a/zencore/filesystem.cpp +++ b/zencore/filesystem.cpp @@ -26,6 +26,8 @@ namespace zen { using namespace std::literals; +#if ZEN_PLATFORM_WINDOWS + static bool DeleteReparsePoint(const wchar_t* Path, DWORD dwReparseTag) { @@ -58,12 +60,6 @@ CreateDirectories(const wchar_t* Dir) return std::filesystem::create_directories(Dir); } -bool -CreateDirectories(const std::filesystem::path& Dir) -{ - return std::filesystem::create_directories(Dir); -} - // Erase all files and directories in a given directory, leaving an empty directory // behind @@ -162,6 +158,14 @@ CleanDirectory(const wchar_t* DirPath) } } +#endif // ZEN_PLATFORM_WINDOWS + +bool +CreateDirectories(const std::filesystem::path& Dir) +{ + return std::filesystem::create_directories(Dir); +} + bool DeleteDirectories(const std::filesystem::path& Dir) { |