Changeset 360
- Timestamp:
- Aug 4, 2005, 9:41:02 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/utility/FileIO.h
r303 r360 5 5 6 6 #include <string> 7 8 #include <unistd.h> 7 9 8 10 namespace theplu { … … 32 34 int access_rights(const std::string& path,const std::string& bits) const; 33 35 36 /// 37 /// Check whether \a file exists. 38 /// 39 /// @return True if \a file exists, false otherwise. 40 /// 41 /// @see access(2) 42 /// 43 inline bool file_exists(const std::string& file) const 44 { return !access(file.c_str(),F_OK); } 34 45 }; 35 46
Note: See TracChangeset
for help on using the changeset viewer.