Imageomics / cautious-robot

Simple images from CSV downloader that runs and records checksums on downloaded image folder.
MIT License
2 stars 0 forks source link

Add option to set log file save location #5

Open egrace479 opened 5 months ago

egrace479 commented 5 months ago

I was surprised that the checksum CSV and log files created in my Downloads directory: /Users/john/Downloads/burress_checksums.csv and /Users/john/Downloads/burress_log.jsonl. It would be nice to have control over where these files get written. It also seems that these files get overwritten if run again.

Could you create an issue to determine the best location to write these log/metadata files and possibly prompt before overwriting them?

Originally posted by @johnbradley in https://github.com/Imageomics/cautious-robot/issues/1#issuecomment-2149743061

egrace479 commented 5 months ago

One note on this:

The log files are opened and added to as the download proceeds, so they won't be overwritten, and checksum is only created after a successful download, so it wouldn't be overwritten unless another is started with same file (i.e., batching), though it will then index everything in that folder.