Changeset 1920 for box/trunk/lib/common/Utils.cpp
- Timestamp:
- 04/11/2007 16:33:53 (5 years ago)
- File:
-
- 1 edited
-
box/trunk/lib/common/Utils.cpp (modified) (1 diff)
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)
Note: See TracChangeset
for help on using the changeset viewer.
