Conversation
|
Hi @ncw, I noticed you are active on rclone again. |
I'm a bit behind in PRs sorry. What I would like to achieve most with this work is a framework for Maybe you could start by rebasing this on master then I'll review it? |
|
wow it's a big patch 🙈 |
|
@innovate-invent |
|
@ivandeex absolutely, thanks |
This comment has been minimized.
This comment has been minimized.
|
PR #3842 refactors the http server code. This PR is based off of that. If you want to roll both PRs into one that is ok. |
No. That's up to you. |
Allowed, unless shadowed by local variables. In your code you frequently name return value |
|
Ah!, that was written back when I misunderstood the functionality of the |
|
- Change Dir to interface - Add NewLazyDir() - Rename variable in ResumeUpload to camel case
- Implement generic Uploader for Fs that implement Concatenatable - Change ConcatUploader to store total size in file and limit the number of fragments per folder by putting them in subfolders - Utilise fs.operations for fs comparison and cleanup - Use path.Join for path building - Add ConcatReader - Refactor ConcatUploader into fragmentUploader for reuse in fallback uploader - Add FallbackUploader - Add interface checks for uploaders - Refactor cleanDir() to generic CleanUploads() for use by any Fs that uses fragmentUploader
- Implement ResumableUpload and Concatenator - Implement ResumableCleanup() for local - Update mTime of upload paths for cleanup - Refactor cleanDir() to generic CleanUploads() for use by any Fs that uses fragmentuploader - Implement lazy dir for local
- Implement ResumableUpload and Concatenator - Implement upload lifecycle policy - Utilise fs.operations for fs comparison and cleanup - Avoid calling applyUploadLifecycle on every request - Use path.Join for path building - Handle edge conditions while concatenating fragments - Remove upload policy from s3 upload bucket - Fix part count for normal upload - Refactor cleanDir() to generic CleanUploads() for use by any Fs that uses fragmentuploader
|
Note: PR #4547 will introduce the Resumer interface in rclone, which is closely related to the changes here. |
|
@ivandeex yes, this PR will compete with that one |
|
This pull request was last updated 3 months ago. |
|
@innovate-invent @ncw |
|
Hopefully we can resolve all problems around the resume code spun off from here. |
What is the purpose of this change?
Integrate the tus upload handler
Was the change discussed in an issue or in the forum before?
https://forum.rclone.org/t/http-upload-contribution/13271/35
Checklist