zcollection.fs_utils.get_fs#
- zcollection.fs_utils.get_fs(filesystem=None)[source]#
Return the file system object from the input.
- Parameters:
filesystem (AbstractFileSystem | str | None) – file system object or file system name
- Returns:
File system object.
- Return type:
Example
>>> from fsspec.implementations.local import LocalFileSystem >>> get_fs("hdfs") >>> get_fs(LocalFileSystem("/tmp/swot"))