Fix in-client SingleFile saving on Windows
https://forums.zotero.org/discussion/85538/zotero-5-0-91-beta-not-saving-snapshots-d672469174
This commit is contained in:
parent
71550deb98
commit
479f01fa9c
1 changed files with 4 additions and 0 deletions
|
@ -809,6 +809,10 @@ Zotero.Utilities.Internal = {
|
|||
*/
|
||||
_saveSingleFileResource: async (resource, tmpDirectory, fileName, binary) => {
|
||||
Zotero.debug('Saving resource: ' + fileName);
|
||||
|
||||
// Fix slashes on Windows
|
||||
fileName = OS.Path.join(...fileName.split('/'));
|
||||
|
||||
// This seems weird, but it is because SingleFileZ gives us path filenames
|
||||
// (e.g. images/0.png). We want to know if the directory 'images' exists.
|
||||
let filePath = OS.Path.join(tmpDirectory, fileName);
|
||||
|
|
Loading…
Add table
Reference in a new issue