dfb28ff3f6
- When relinking a missing stored file, copy it into the attachment's storage directory automatically - Previously, selecting a file outside the attachment subdir would just result in a missing attachment, since it only looks for stored files within the subdir - Display an error message if a Windows shortcut (.lnk) is added via drag-and-drop or via a file dialog on non-Windows systems, until we can figure out how to determine the original file - Shortcuts can cause errors during syncing, for unclear reasons - Neither nsIFile::copyToFollowingLinks() nor nsIFile::target work for me to get the original file, even when nsIFile::isSymlink() returns true - Windows file dialogs seem to automatically resolve shortcuts, so it's only an issue there for drag-and-drop - Disallow hidden files from being selected in relink dialog - I think some people on Windows with hidden files shown relink the .zotero* files that show up when they click Locate, which causes file sync errors. Which brings us to... - Fix file sync errors for *.lnk and .zotero* files - Ignore existing .zotero* attachment files, treating the files as missing instead to encourage relinking - Strip leading period in getValidFileName() to prevent added files from being hidden - This allows hidden files to be added explicitly; they just won't stay that way in the storage directory (These things should have tests, but that will have to happen on the 5.0 branch.) |
||
---|---|---|
.. | ||
zotero | ||
zotero-platform |