Open jgerardsimcock opened 7 years ago
It could work like get_local_path, where get_path always returns a valid path, though sometimes it's a temporary file. We'd have to think about how to handle file cleanup though... maybe this is not solvable.
also I realized my mockup was wrong... we'd want to return a valid path, e.g. /mnt/norgay_gcp/cache/my_archive/0.0.1
Enable users to call a command
get_path
that will return a string to a file path in the cache.$ fp = datafs get_path my_archive
$ fp
$ norgay:/my_archive/0.0.1
This is designed to mirror current workflow of Climate Impact Lab users who rely on file paths for their scripts.