Don't copy item storage folder to orphaned-files every time the file changes via storage sync
This commit is contained in:
parent
6dbcc678c8
commit
e2dc73c75b
1 changed files with 4 additions and 1 deletions
|
@ -1049,7 +1049,10 @@ Zotero.Sync.Storage = new function () {
|
|||
return;
|
||||
}
|
||||
|
||||
var parentDir = Zotero.Attachments.createDirectoryForItem(item.id);
|
||||
var parentDir = Zotero.Attachments.getStorageDirectory(item.id);
|
||||
if (!parentDir.exists()) {
|
||||
Zotero.Attachments.createDirectoryForItem(item.id);
|
||||
}
|
||||
|
||||
// Delete existing files
|
||||
var otherFiles = parentDir.directoryEntries;
|
||||
|
|
Loading…
Reference in a new issue