cuducos / chunk

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

Make Chunk directory configurable #39

Closed cuducos closed 1 year ago

cuducos commented 1 year ago

38 added ~/.chunk as the default directory for saving progress files. There's a TODO to make it configurable:

https://github.com/cuducos/chunk/blob/02999cdd7fd49644210e074e0e2ae3473e2af2c1/progress.go#L16-L28

Maybe reading from and environment variable like CHUNK_DIR?

danielfireman commented 1 year ago

Maybe reading from an environment variable like CHUNK_DIR?

In addition, I suggest keeping it consistent with the other configuration params: Download.ProgressTrackerDir and a command line parameter --progress-tracker-dir. Or something like that.