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

differential, automatic file transfer on partially transferred folder tree, based on file attributes #7

Closed
benglitz opened this issue Jan 2, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@benglitz
Copy link

benglitz commented Jan 2, 2023

It would be great to have the possibility to 'safely' run a transfer on a partially transferred directory tree, e.g. if only a part was transferred, it would be great to be able to just rerun the upload command on the base directory and repocli would identify which files still need to be transferred, e.g. based on a comparison of the size/modification date of the source and target files.

@hurngchunlee hurngchunlee added the enhancement New feature or request label Jan 2, 2023
@hurngchunlee
Copy link
Member

@benglitz I have implemented it in such that a file is considered existing at the destination if

  • the path at the destination exists, and
  • file at destination has the same size as the file at source, and
  • file at destination has modification time later than the file at source

If there is an error getting the file information and the error is not FileNotFound, the file is also considered "existing" at the destination to prevent accidental file overwrite.

If a file is considered existing, the put/get operation will skip it unless you have the -f flag specified to overwrite existing files.

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

No branches or pull requests

2 participants