PaperMemoryStore directory not created, PDF files placed in the wrong location
The documentation for Local File Storage says:
"The extension creates a PaperMemoryStore/ folder in your Downloads/"
It does not. Furthermore, the PDFs are placed in ~/Downloads.
To Reproduce Steps to reproduce the behavior:
- Go to a paper on Arxiv
- Click on download
- Note the location the file is downloaded
Expected behavior
I expect a directory named PaperMemoryStore to be created in the users Downloads folder and the file to be stored there.
Desktop
- OS: Windows 10
- Browser: Firefox
- Version 121.0
- PaperMemory version: 0.7.0
Additional context
I tried manually creating the PaperMemoryStore folder in ~Downloads directory, however that did not fix the problem.
Hi, thanks for letting me know. I'll investigate next week and get back to you.
I can't reproduce unfortunately...
The only control I have looks like this:
let filename = "PaperMemoryStore/" + payload.title;
filename = filename.replaceAll("?", "").replaceAll(":", "");
chrome.downloads.download({ url: payload.pdfUrl, filename });
It may be a bug in the the browser's chrome.downloads API (it's called chrome on Firefox too). I'll look online
Following up here. When you say you can't reproduce, do you mean when running on MS Windows and Firefox it places the PDF in ~/Downloads/PaperMemoryStore/ for you?