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;
|
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
|
// Delete existing files
|
||||||
var otherFiles = parentDir.directoryEntries;
|
var otherFiles = parentDir.directoryEntries;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue