datajoint-python icon indicating copy to clipboard operation
datajoint-python copied to clipboard

Choose custom download location for attach@store objects

Open horsto opened this issue 2 years ago • 2 comments
trafficstars

Feature Request

This is a follow-up of a discussion with @ttngu207 on Slack. For attach@store logic, the files are downloaded into the current working directory upon fetch(). This has the advantage that the user can call the file path directly, but it causes a lot of cluttered files to be saved in a potentially suboptimal location on the drive.

Requirements

The download path for attach@store objects should be configurable and the file path should be updated automatically upon fetching to reflect that user-configured location.

horsto avatar Sep 21 '23 19:09 horsto

Does Table().fetch(download_path="mypath") not do what you are proposing?

christoph-blessing avatar Oct 10 '23 08:10 christoph-blessing

Oh I did not know that existed! Thanks for pointing to that.

Ok, then I have a follow-up question, whether that download_path variable could somehow be made configurable globally so it does not have to be called in every fetch.

horsto avatar Oct 10 '23 12:10 horsto