filesystem_spec
filesystem_spec copied to clipboard
Add url spec to filesystem
For some file providers it's handy to get a url for a specfici file. For example for S3 you may want a pre-signed url you can give to another server or client to allow them to write.
Some backend like S3 and GCP have implemented a url method to allow you to do this. But it's not part of the official spec.
The spec has the method sign() meant for this purpose, which is an alias for url() in s3 and gcs. I find sign more explicit for its intentions - it's not just a unique URL.
Ah okay, didn't see that in the documentation initially. It doesn't appear to be in the user functions area, so I'm guessing it would be the file handler returned which has this method.
Same with any method involving metadata.