From: <sv...@ww...> - 2004-12-18 10:08:54
|
Author: mkrose Date: 2004-12-18 02:08:48 -0800 (Sat, 18 Dec 2004) New Revision: 1396 Modified: trunk/CSP/SimData/Source/FileUtility.cpp Log: Fix a bug in simdata::ospath::exists(). Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1396 Modified: trunk/CSP/SimData/Source/FileUtility.cpp =================================================================== --- trunk/CSP/SimData/Source/FileUtility.cpp 2004-12-17 23:05:00 UTC (rev 1395) +++ trunk/CSP/SimData/Source/FileUtility.cpp 2004-12-18 10:08:48 UTC (rev 1396) @@ -198,7 +198,7 @@ #else // POSIX (hopefully) static const int mode = F_OK; #endif - return access(path.c_str(), mode) != 0; + return access(path.c_str(), mode) == 0; } ospath::DirectoryContents ospath::getDirectoryContents(std::string const &path) { |