PaperMemory icon indicating copy to clipboard operation
PaperMemory copied to clipboard

PaperMemoryStore directory not created, PDF files placed in the wrong location

Open Symbolics opened this issue 1 year ago • 5 comments

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:

  1. Go to a paper on Arxiv
  2. Click on download
  3. 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.

Symbolics avatar Jan 04 '24 07:01 Symbolics

Hi, thanks for letting me know. I'll investigate next week and get back to you.

vict0rsch avatar Jan 12 '24 21:01 vict0rsch

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

vict0rsch avatar Feb 27 '24 19:02 vict0rsch

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?

snunez1 avatar Jul 21 '24 10:07 snunez1