Changeset 7618 in orxonox.OLD for branches/qt_gui/src/lib/util/file.cc
- Timestamp:
- May 15, 2006, 2:52:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/util/file.cc
r7616 r7618 62 62 { 63 63 this->_handle = 0; 64 std::string name = this->_name; 64 65 65 66 this->_status = new struct stat; 66 if (stat(this->_name.c_str(), this->_status)) 67 // Check the End of the FileName and chop away any \ and // 68 if (this->_name[this->_name.size()-1] == '/' || 69 this->_name[this->_name.size()-1] == '\\') 70 name.resize(name.size()-1); 71 72 if (stat(name.c_str(), this->_status)) 67 73 { 68 74 delete this->_status;
Note: See TracChangeset
for help on using the changeset viewer.