cuducos / chunk

🧱 Chunk is a download manager for slow and unstable servers
MIT License
56 stars 3 forks source link

Moves progress files to `~/.chunk` #38

Closed cuducos closed 1 year ago

cuducos commented 1 year ago

As it is the progress control would create a hidden file in the outputDir of each download. This seems reasonable but would create situations as such:

This PR suggests:

  1. moving all progress files to a predictable location, a hidden directory under the user's directory (i.e. ~/.chunk)
  2. all progress files names are unique to each combination of download URL and absolute local file path

This decision of uniqueness by URL and absolute file path allows the following scenarios:

TODO in a follow up PR: