fix for deleting a non-blend file

This commit is contained in:
2014-11-20 21:08:13 +01:00
parent 29f1c3778e
commit b6154953ad
3 changed files with 14 additions and 6 deletions

View File

@@ -309,7 +309,7 @@ class FileAPI(Resource):
log.debug(path_ops)
for file_path, operation in path_ops.items():
# TODO(fsiddi), collect all file paths and remove after
if operation == 'D':
file_path_abs = os.path.join(project.repository_path, file_path)
assert(os.path.exists(file_path_abs))
@@ -373,6 +373,9 @@ class FileAPI(Resource):
)
del zipfile
# simple case
paths_remap[os.path.basename(filepath)] = os.path.basename(filepath)
# TODO, avoid reopening zipfile
# append json info to zip
import zipfile