-
Notifications
You must be signed in to change notification settings - Fork 6
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
Enhancement Request: support wget -i type multifile download #194
Comments
@cxplay What is the use case where different sources should map to the exact same file on disk? What should the behavior be if:
and
Should we take the latest one in the list? Should the first one take priority? Since PGET is focused on performance downloading, I'd prefer to not download both files just to overwrite. Additionally there would likely be an error as we do not use I'm open to a change, but I want to make sure we're being clear about the intent and what the expected behavior should be. At the very least a warning that the local filesystem path is duplicated and clearly defining which file will be downloaded is important. However, it also could be argued that telling the downloader to download two distinct files to the same target is incorrect. The one caveat is the the |
What I mean is that I used the following manifest.
But PGet refuses to read it, telling me the destination is the same. |
Yes, Pget works in absolute paths so the correct format would be
There is a bug that pget doesn't create the directory if it doesn't exist in the 0.6.2 release but in the 0.7.x (upcoming release) it will create the directory if needed. |
Thanks for the explanation, I understand. But does it mean that I have to specify the filename of the output file, otherwise PGet will still refuse to read it? My main goal is to quickly batch download files using something like |
Ok! I think I understand now and I think we can add a flag to support this type of behavior. Let me run down what I read from your request:
This means that all elements in the manifest (multifile mode) would use the target as a directory:
This would result in:
Assumptions
Further Questions
@cxplay Let me know if this all makes sense and if you can answer the items in "further questions" I'd appreciate it. I think this is a small change (relative to some others) and should be easy to get added to pget. |
|
@cxplay I wanted to circle up and let you know this hasn't fallen off the radar and as we implement the multifile form for tar extraction we'll hit this. 0.8.1 needed to land for some memory utilization reasons before we took on new work. |
It is currently not possible to specify the same output path for two URLs.
The text was updated successfully, but these errors were encountered: