pget icon indicating copy to clipboard operation
pget copied to clipboard

Feature Request: Support skipping download if entire file already exists

Open WrayOfSunshine opened this issue 1 year ago • 1 comments
trafficstars

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.

WrayOfSunshine avatar May 03 '24 14:05 WrayOfSunshine

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>

allrobot avatar Jun 04 '24 07:06 allrobot