Future-Scholars / paperlib

An open-source academic paper management tool.
https://paperlib.app
GNU General Public License v3.0
1.57k stars 68 forks source link

[Feature Request] Sync webdav in one click. #610

Closed HaoxuanGuo closed 2 months ago

HaoxuanGuo commented 2 months ago

Is it possible to sync (upload) webdav in one click?

The current sync is lazy which means it will only sync the item which has been operated. When a user want to setup on another device, it will found the paper it want to read has not been uploaded nor not downloadable.

To avoid this condition, is it possible to upload all files on one click?

GeoffreyChen777 commented 2 months ago

How long will it take before uploading?

HaoxuanGuo commented 2 months ago

@GeoffreyChen777 Sorry I can not understand your question.

There are 252 items.

image

There are 12 items.

image

The upload process only run when I click an item. Nothing will happen if I only put the software idling. So I can not answer the question "how long".

GeoffreyChen777 commented 2 months ago

The file uploading will trigger immediately after you drag a PDF in paperlib. If not, there must be something wrong.

You can share me the log file. ~/Library/Logs/paperlib/

HaoxuanGuo commented 2 months ago

When I set up webdav, there were already a lot of files in the database. These old files will not be automatically uploaded. I haven't tried to drag in new files yet.

Here are the logs.

extension.log main.log renderer.log

GeoffreyChen777 commented 2 months ago

yes that's the problem.

The webdav will watch the library folder, if there is any file creating, deleting, editing, we do the sync.

Currently, you can first, delete all files on your webdav, then copy PDFs out of your library folder, and then paste it back.

HaoxuanGuo commented 2 months ago

Is it possible to add a sync function triggered by manual or when webdav config changed?

GeoffreyChen777 commented 2 months ago

sorry, for now, we don't have this function.

HaoxuanGuo commented 2 months ago

Close due to won't implement.