Revision 56569f4e lib/backend.py
b/lib/backend.py | ||
---|---|---|
2109 | 2109 |
|
2110 | 2110 |
utils.WriteFile(utils.PathJoin(destdir, constants.EXPORT_CONF_FILE), |
2111 | 2111 |
data=config.Dumps()) |
2112 |
shutil.rmtree(finaldestdir, True) |
|
2112 |
shutil.rmtree(finaldestdir, ignore_errors=True)
|
|
2113 | 2113 |
shutil.move(destdir, finaldestdir) |
2114 | 2114 |
|
2115 | 2115 |
|
... | ... | |
2273 | 2273 |
cfg = _GetConfig() |
2274 | 2274 |
file_storage_dir = os.path.normpath(file_storage_dir) |
2275 | 2275 |
base_file_storage_dir = cfg.GetFileStorageDir() |
2276 |
if (not os.path.commonprefix([file_storage_dir, base_file_storage_dir]) ==
|
|
2276 |
if (os.path.commonprefix([file_storage_dir, base_file_storage_dir]) !=
|
|
2277 | 2277 |
base_file_storage_dir): |
2278 | 2278 |
_Fail("File storage directory '%s' is not under base file" |
2279 | 2279 |
" storage directory '%s'", file_storage_dir, base_file_storage_dir) |
Also available in: Unified diff