Code-Hex / pget

The fastest, resumable file download client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Support skipping download if entire file already exists

WrayOfSunshine opened this issue · comments

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.

commented

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>