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

Feature Request: Support skipping download if entire file already exists #68

Open
WrayOfSunshine opened this issue May 3, 2024 · 1 comment

Comments

@WrayOfSunshine
Copy link

I'm using pget to download files in multiple projects, but in the case of a file already being cached on the machine I don't want to download it a second time (overwriting the first). Could you offer a switch to skip downloading anything that is already complete? Assuming that since resume is possible, we're comparing against file size, so presumably identical file size would be a sufficient check for this.

@allrobot
Copy link

allrobot commented Jun 4, 2024

You can write a script yourself to check if a file already exists. Of course, it's recommended to use aria2. The following command can replace the effect of pget:

-m, --max-tries=<N>
-k, --min-split-size=<SIZE>
-s, --split=<N>

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

No branches or pull requests

2 participants