9e356a7e63
Absolute paths have been stored as strings on all platforms for a while, but old Mac persistent descriptors (Base64-encoded opaque alias records) could still exist in the DB. Additionally, relative paths for stored files were stored as Mozilla-specific opaque strings rather than UTF-8 strings. This adds a schema step to convert those to strings paths in the DB. Since Mac persistent descriptors aren't converted if the file isn't found, we still handle and (convert) old-style persistent descriptors if necessary when reading paths from the DB. This also moves path string handling -- converting a path to a prefixed string for stored or base-dir-relative files -- to the Zotero.Item#attachmentPath setter instead of save() so that reading it back immediately returns the correct value. One consequence is that the attachment link mode must now be set before setting the path. Zotero.Item#getFile() is now deprecated in favor of getFilePath() and getFilePathAsync() (which checks file existence). Zotero.File.directoryContains() now takes string paths instead of files. |
||
---|---|---|
.. | ||
components | ||
content | ||
resource | ||
tests | ||
chrome.manifest | ||
install.rdf | ||
runtests.sh |