comparison Core/FileStorage.cpp @ 142:e7e19f042eb5

fix
author jodogne
date Thu, 11 Oct 2012 13:57:56 +0200
parents fe180eae201d
children 7e8b68dd6ace
comparison
equal deleted inserted replaced
141:24681d35bad9 142:e7e19f042eb5
291 fs::remove(p.parent_path()); 291 fs::remove(p.parent_path());
292 fs::remove(p.parent_path().parent_path()); 292 fs::remove(p.parent_path().parent_path());
293 #endif 293 #endif
294 } 294 }
295 295
296 void FileStorage::UncheckedRemove(const std::string& uuid)
297 {
298 try
299 {
300 Remove(uuid);
301 }
302 catch (boost::filesystem::filesystem_error)
303 {
304 // Ignore the error
305 }
306 }
307
308
296 309
297 uintmax_t FileStorage::GetCapacity() const 310 uintmax_t FileStorage::GetCapacity() const
298 { 311 {
299 return boost::filesystem::space(root_).capacity; 312 return boost::filesystem::space(root_).capacity;
300 } 313 }