comparison Core/FileStorage.cpp @ 148:0fadb04728ba

fix
author jodogne
date Thu, 11 Oct 2012 22:02:38 +0200
parents 7e8b68dd6ace
children bee20e978835
comparison
equal deleted inserted replaced
147:7e8b68dd6ace 148:0fadb04728ba
281 281
282 try 282 try
283 { 283 {
284 fs::remove(p); 284 fs::remove(p);
285 } 285 }
286 catch (fs::filesystem_error) 286 catch (...)
287 { 287 {
288 // Ignore the error 288 // Ignore the error
289 } 289 }
290 290
291 // Remove the two parent directories, ignoring the error code if 291 // Remove the two parent directories, ignoring the error code if
300 #else 300 #else
301 fs::remove(p.parent_path()); 301 fs::remove(p.parent_path());
302 fs::remove(p.parent_path().parent_path()); 302 fs::remove(p.parent_path().parent_path());
303 #endif 303 #endif
304 } 304 }
305 catch (fs::filesystem_error) 305 catch (...)
306 { 306 {
307 // Ignore the error 307 // Ignore the error
308 } 308 }
309 } 309 }
310 310