mirror of https://github.com/kiwix/libkiwix.git
Remove makeDirectory
This commit is contained in:
parent
9fd8e81de2
commit
7108dfa9c2
|
@ -320,16 +320,6 @@ bool kiwix::fileReadable(const std::string& path)
|
||||||
#endif
|
#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()
|
std::string makeTmpDirectory()
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
|
@ -29,7 +29,6 @@ std::wstring Utf8ToWide(const std::string& str);
|
||||||
|
|
||||||
unsigned int getFileSize(const std::string& path);
|
unsigned int getFileSize(const std::string& path);
|
||||||
std::string getFileSizeAsString(const std::string& path);
|
std::string getFileSizeAsString(const std::string& path);
|
||||||
bool makeDirectory(const std::string& path);
|
|
||||||
std::string makeTmpDirectory();
|
std::string makeTmpDirectory();
|
||||||
bool copyFile(const std::string& sourcePath, const std::string& destPath);
|
bool copyFile(const std::string& sourcePath, const std::string& destPath);
|
||||||
bool writeTextFile(const std::string& path, const std::string& content);
|
bool writeTextFile(const std::string& path, const std::string& content);
|
||||||
|
|
Loading…
Reference in New Issue