1 diff --git a/src/common/common/DefinesFile.cpp b/src/common/common/DefinesFile.cpp
2 index 6ad803d..022797a 100644
3 --- a/src/common/common/DefinesFile.cpp
4 +++ b/src/common/common/DefinesFile.cpp
10 + bool fileCanBeStated(const std::string &file)
13 + memset(&buf, 0, sizeof(buf));
14 + int result = stat(file.c_str(), &buf );
20 std::string S3D::getHomeDir()
23 @@ -74,12 +85,12 @@ bool S3D::dirMake(const std::string &file)
25 bool S3D::fileExists(const std::string &file)
27 - return (S3D::fileModTime(file) != 0);
28 + return fileCanBeStated(file);
31 bool S3D::dirExists(const std::string &file)
33 - return (S3D::fileModTime(file) != 0);
34 + return fileCanBeStated(file);
37 time_t S3D::fileModTime(const std::string &file)