Changeset 1920
- Timestamp:
- 04/11/2007 16:33:53 (4 years ago)
- Location:
- box/trunk/lib/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/lib/common/Utils.cpp
r1549 r1920 136 136 // 137 137 // Function 138 // Name: ObjectExists(const char *)138 // Name: ObjectExists(const std::string& rFilename) 139 139 // Purpose: Does a object exist, and if so, is it a file or a directory? 140 140 // Created: 23/11/03 141 141 // 142 142 // -------------------------------------------------------------------------- 143 int ObjectExists(const char *Filename)143 int ObjectExists(const std::string& rFilename) 144 144 { 145 145 struct stat st; 146 if(::stat( Filename, &st) != 0)146 if(::stat(rFilename.c_str(), &st) != 0) 147 147 { 148 148 if(errno == ENOENT) -
box/trunk/lib/common/Utils.h
r217 r1920 30 30 ObjectExists_Dir = 2 31 31 }; 32 int ObjectExists(const char *Filename);32 int ObjectExists(const std::string& rFilename); 33 33 34 34 #include "MemLeakFindOff.h"
Note: See TracChangeset
for help on using the changeset viewer.
