Don't copy item storage folder to orphaned-files every time the file changes via storage sync

This commit is contained in:
Dan Stillman 2009-03-15 17:39:09 +00:00
parent 6dbcc678c8
commit e2dc73c75b

View file

@ -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;