From 7108dfa9c234e9805a554757bbd75b25991f2b9d Mon Sep 17 00:00:00 2001 From: sgourdas Date: Sun, 11 Aug 2024 23:46:48 +0300 Subject: [PATCH] Remove makeDirectory --- src/tools/pathTools.cpp | 10 ---------- src/tools/pathTools.h | 1 - 2 files changed, 11 deletions(-) diff --git a/src/tools/pathTools.cpp b/src/tools/pathTools.cpp index a082e33af..ae11dcd0e 100644 --- a/src/tools/pathTools.cpp +++ b/src/tools/pathTools.cpp @@ -320,16 +320,6 @@ bool kiwix::fileReadable(const std::string& path) #endif } -bool makeDirectory(const std::string& path) -{ -#ifdef _WIN32 - int status = _wmkdir(Utf8ToWide(path).c_str()); -#else - int status = mkdir(path.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); -#endif - return status == 0; -} - std::string makeTmpDirectory() { #ifdef _WIN32 diff --git a/src/tools/pathTools.h b/src/tools/pathTools.h index 82c2a8678..0dc4286b3 100644 --- a/src/tools/pathTools.h +++ b/src/tools/pathTools.h @@ -29,7 +29,6 @@ std::wstring Utf8ToWide(const std::string& str); unsigned int getFileSize(const std::string& path); std::string getFileSizeAsString(const std::string& path); -bool makeDirectory(const std::string& path); std::string makeTmpDirectory(); bool copyFile(const std::string& sourcePath, const std::string& destPath); bool writeTextFile(const std::string& path, const std::string& content);