mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
should work now
This commit is contained in:
@@ -157,7 +157,11 @@ bool RecursiveDelete(std::string path)
|
|||||||
|
|
||||||
int r = SHFileOperation(&sfo);
|
int r = SHFileOperation(&sfo);
|
||||||
|
|
||||||
return (r == 0);
|
if(r != 0)
|
||||||
|
std::cerr<<"SHFileOperation returned "<<r<<std::endl;
|
||||||
|
|
||||||
|
//return (r == 0);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else // POSIX
|
#else // POSIX
|
||||||
|
@@ -41,6 +41,7 @@ bool CreateDir(std::string path);
|
|||||||
bool PathExists(std::string path);
|
bool PathExists(std::string path);
|
||||||
|
|
||||||
// Only pass full paths to this one. True on success.
|
// Only pass full paths to this one. True on success.
|
||||||
|
// NOTE: The WIN32 version returns always true.
|
||||||
bool RecursiveDelete(std::string path);
|
bool RecursiveDelete(std::string path);
|
||||||
|
|
||||||
// Only pass full paths to this one. True on success.
|
// Only pass full paths to this one. True on success.
|
||||||
|
Reference in New Issue
Block a user