Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement updateNewerFiles option #141

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

paganaye
Copy link

@paganaye paganaye commented Jan 1, 2022

It is quite long to upload many files over and over again.
I needed the updateNewerFiles option.
I thought of comparing dates but it is error prone as the file might be modified while we are uploading.
I went for a I after a bit a thought I believe it is safer to upload the filemap.
I also had to store the the locale modification time for each file in the filemap.

{
    "date": "2022-01-01T13:53:27.498Z",
    "user": "pascal",
    "client": "PASCAL-PC",
    "filemap": {
        "/": [
            {
                "name": "test-inside-root.txt",
                "mtime": 1641045207476.4395
            }
        ],
        "folderA": [
            {
                "name": "test-inside-a.txt",
                "mtime": 1640956927631.6794
            }
        ],
        "fo

I am not a javascript specialist. I did the best I could. It works for me. I don't mind if you merge or not or rewrite it totally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant