mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #438] Skip existing files on upload? #238
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dufferzafar on GitHub (Aug 22, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/438
Specific Demand
If I upload a folder with the same name say "Backup", can we skip the files that already exist? rather than try & overwriting them?
@sigoden commented on GitHub (Aug 22, 2024):
We will not support this feature.
We cannot skip files based solely on their existence. What if the content is different, but the file name remains the same?
A better approach might be skipping uploads if a file with the same hash already exists.
However, this also won't work. Calculating the hash requires loading entire files into memory, while the current upload process is streamed and uses less memory. This could overload the browser and slow down the upload.
@dufferzafar commented on GitHub (Aug 23, 2024):
Cool, thanks for explaining the nuances. I really appreciate dufs btw, it performs quite well so I understand why you'd want to keep that.
I just tried building dufs from source so if I ever really need this feature I can add it myself. It failed at the link step though:
This is an older ubuntu, so I'll first try it on some other box!