ClimateImpactLab / DataFS

An abstraction layer for data storage systems
MIT License
6 stars 2 forks source link

Enable `get_path` command line operation to return file path for stata/r/bash/other environments #130

Open jgerardsimcock opened 7 years ago

jgerardsimcock commented 7 years ago

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.

delgadom commented 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.

delgadom commented 7 years ago

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