diff --git a/src/filesys.cpp b/src/filesys.cpp index 2fd90c237c4e5e44e4a6f08ac9ec281ccd6daa02..287090e8a94ec068a4ba92e755330481f69887fb 100644 --- a/src/filesys.cpp +++ b/src/filesys.cpp @@ -157,7 +157,11 @@ bool RecursiveDelete(std::string path) int r = SHFileOperation(&sfo); - return (r == 0); + if(r != 0) + std::cerr<<"SHFileOperation returned "<<r<<std::endl; + + //return (r == 0); + return true; } #else // POSIX diff --git a/src/filesys.h b/src/filesys.h index e46b17b0def460faace60aa16759a1004890be54..4dd90b84e29618a5126d0f9396768d361034ed1b 100644 --- a/src/filesys.h +++ b/src/filesys.h @@ -41,6 +41,7 @@ bool CreateDir(std::string path); bool PathExists(std::string path); // Only pass full paths to this one. True on success. +// NOTE: The WIN32 version returns always true. bool RecursiveDelete(std::string path); // Only pass full paths to this one. True on success.