Rev409, Delete files removed from content.json, Start download user files right after content.json downloaded, New API command: fileDelete, Better notification input auto focus
This commit is contained in:
parent
8f63e4c421
commit
917393c022
8 changed files with 90 additions and 43 deletions
|
@ -84,8 +84,8 @@ class FileRequest(object):
|
|||
"Someone trying to push a file to own site %s, reload local %s first" %
|
||||
(site.address, params["inner_path"])
|
||||
)
|
||||
changed = site.content_manager.loadContent(params["inner_path"], add_bad_files=False)
|
||||
if changed: # Content.json changed locally
|
||||
changed, deleted = site.content_manager.loadContent(params["inner_path"], add_bad_files=False)
|
||||
if changed or deleted: # Content.json changed locally
|
||||
site.settings["size"] = site.content_manager.getTotalSize() # Update site size
|
||||
buff = StringIO(params["body"])
|
||||
valid = site.content_manager.verifyFile(params["inner_path"], buff)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue