Changeset 11974
- Timestamp:
- 09/05/11 21:46:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DimWriteStatistics.cc
r11893 r11974 98 98 //! @return whether or not the given path exists 99 99 // 100 bool DimWriteStatistics::DoesPathExist( const string &path, MessageImp &log)100 bool DimWriteStatistics::DoesPathExist(string path, MessageImp &log) 101 101 { 102 102 namespace fs = boost::filesystem; 103 104 if (path.empty()) 105 path = "."; 103 106 104 107 const fs::path fullPath = fs::system_complete(fs::path(path)); … … 153 156 throw runtime_error("Path to be created looks suspicious '"+path+"'"); 154 157 155 CreateDirectory(path.substr(0, path.find_last_of('/'))); 158 if (path.find_last_of('/')!=string::npos) 159 CreateDirectory(path.substr(0, path.find_last_of('/'))); 156 160 157 161 //path does not exist, and upper level have been created already by recusrion.
Note:
See TracChangeset
for help on using the changeset viewer.