Ezwen / bandcamp-collection-downloader

A command-line tool to automatically download all releases purchased with a Bandcamp account. The official page of the project is https://framagit.org/Ezwen/bandcamp-collection-downloader, while here this is just a mirror hosted on Github.
GNU Affero General Public License v3.0
245 stars 23 forks source link

Feature Request: Add ability to set path of cache file #27

Closed ryanwalder closed 2 years ago

ryanwalder commented 3 years ago

I would like the ability to set the location of the .cache file.

This would allow me to store the cache file somewhere more convenient eg: ~/.config/bandcamp-downloader/blah.cache rather than wherever I last ran the program.

For context I run the downloader via a wrapper shell script which lives in my PATH (to save me typing out the options all the time) so the cache file gets created wherever I run the wrapper script from which is less than ideal. Being able to set the location of the cache file via a cli option would alleviate this problem.

Ezwen commented 2 years ago

Hi there! In theory, the cache file is not created wherever the script is run, but in the specified download folder (with --download-folder), as can be seen here: https://github.com/Ezwen/bandcamp-collection-downloader/blob/0420ce033162bbd3e92d4ffa23429f700e3b0398/src/main/kotlin/bandcampcollectiondownloader/core/BandcampCollectionDownloader.kt#L85

Just to be sure, isn't --download-folder enough for your case?

ryanwalder commented 2 years ago

Ah I wasn't aware of that, that would definitely cover my use case. Thanks for the reply!

Ezwen commented 2 years ago

Do try and let me know if there is a problem. Who knows, maybe the cache file gets created in the wrong place in some cases − and that would justify a bug request :)