filesystem_spec
filesystem_spec copied to clipboard
A specification that python filesystems should adhere to.
See #1580. It is basically a copy of the FTP class in fsspec, with a modification to use FTP_TLS and one addtional change. Please have a look at [this](https://github.com/fsspec/filesystem_spec/pull/1581/commits/1937cc8ccbb0757141feb7156b2c58c0126e8cfe#diff-c232dd1a6b61794c2f4158c99b714b6c89d021d2d84af2bcd784c2a74f86f236R83).
I have a script called `fsspec`: ```python3 #!/usr/bin/env python3 import sys if '-f' in sys.argv: del sys.argv[sys.argv.index("-f")] from fsspec.implementations.tar import TarFileSystem as tafs fs = tafs(sys.argv[1]) print(f"Mount {sys.argv[1]} at {sys.argv[2]}")...
I have a script called `fsspec`: ```bash #!/usr/bin/env python3 import sys if '-f' in sys.argv: del sys.argv[sys.argv.index("-f")] from fsspec.implementations.tar import TarFileSystem as tafs fs = tafs(sys.argv[1]) print(f"Mount {sys.argv[1]} at {sys.argv[2]}")...
This static typing utility could help catch potential bugs such as #1585
Create test file: ```bash echo bar > foo tar -cf foo{.tar,} ``` Mount: ```python3 from fsspec.implementations.tar import TarFileSystem as tafs fs = tafs("foo.tar") import fsspec.fuse fsspec.fuse.run(fs, "./", "mounted", ready_file=True) ```...
```bash echo bar > foo tar -cf foo{.tar,} python3 -m fsspec.fuse --version # 2024.3.1 python3 -m fsspec.fuse --help # -f, --foreground Running in foreground or not (Default: False) python3 -m...
Hi there, we already wrote a bit back and forth in the issue in the smart_open repository. I wanted to give fsspec.fuse a quick try using the tar/libarchive backend. Unluckily,...
Seems to fix a problem I was having. Can't do it upstream in the `rsync` method because at least one file needs the protocol to resolve the proper filesystem.