Closed honnibal closed 10 months ago
We should consider adding a Pathy class that can support http/https endpoints. It wouldn't be able to do all operations, but we could do some, right?
path.open()
smart-open
path.exists()
path.iterdir()
path.chmod()
path.is_dir()
path.is_file()
path.rmdir()
path.mkdir()
path.unlink()
I'm going to close this issue because it's stale and I don't plan on implementing it. PRs to add this functionality are welcomed if someone finds it interesting.
We should consider adding a Pathy class that can support http/https endpoints. It wouldn't be able to do all operations, but we could do some, right?
path.open()
: This could be mapped into a call tosmart-open
pretty easily.path.exists()
: try/except to open?path.iterdir()
: Not supported?path.chmod()
: Not supported, but should we no-op or raise?path.is_dir()
andpath.is_file()
: Not sure what to do about this.path.rmdir()
: Not supported?path.mkdir()
: Not supported?path.unlink()
: Not supported, or should we issue a delete request?