fs¶
Functions
Check for the existance of a local/remote file. |
|
Join parts into a path |
|
Open a file handler to a local or remote file. |
- laminar.utils.fs.exists(*, uri: str) bool ¶
Check for the existance of a local/remote file.
Usage:
fs.exists("file:///...") fs.exists("s3://...")
- laminar.utils.fs.join(*parts: Any) str ¶
Join parts into a path
- laminar.utils.fs.open(uri: str, mode: 'r') TextIO ¶
- laminar.utils.fs.open(uri: str, mode: 'rb') BinaryIO
- laminar.utils.fs.open(uri: str, mode: 'w') TextIO
- laminar.utils.fs.open(uri: str, mode: 'wb') BinaryIO
Open a file handler to a local or remote file.
Usage:
with fs.open("file:///...", "r") as file: ... with fs.open("s3://...", "wb") as file: ...