mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
Fix NS_ERROR_FILE_IS_LOCKED if no files to add to upload zip
This commit is contained in:
parent
4616a51874
commit
6b61795d96
1 changed files with 1 additions and 0 deletions
|
|
@ -1663,6 +1663,7 @@ Zotero.Sync.Storage = new function () {
|
|||
var fileList = _zipDirectory(dir, dir, zw);
|
||||
if (fileList.length == 0) {
|
||||
Zotero.debug('No files to add -- removing zip file');
|
||||
zw.close();
|
||||
tmpFile.remove(null);
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue