pyfilesystem2
pyfilesystem2 copied to clipboard
Python's Filesystem abstraction layer
Is glob intended to produce same results as glob.glob? They seem to be different at least on windows local file system. ``` import fs from glob import glob local =...
#### How to reproduce 1. Install python 3.8.5 2. ```bash $ curl -O https://files.pythonhosted.org/packages/1d/a1/8813629b38a8d97e8f1eceb6c7da03b37633c93104fbd8e30e09d195425a/fs-2.4.11.tar.gz $ tar xf fs-2.4.11.tar.gz $ cd xf fs-2.4.11 $ virtualenv env $ source env/bin/activate $ python...
## Type of changes - Bug fix ## Checklist - [ ] I've run the latest [black](https://github.com/ambv/black) with default args on new code. - [ ] I've updated CHANGELOG.md and...
OSFS won't acknowledge the existence of symlinks if the symlink points to a non-existing destination: ```python >>> from fs import tempfs >>> import os >>> fs = tempfs.TempFS() # TempFS...
Hi! I'm looking for a way to copy/mirror data from `ReadTarFS` to `OSFS`. Everything works fine unless the archive contains symlinks. All copy/mirror methods are implemented via `copy_file_internal` function which...
The current implementation of `fs.base.FS.islink` is the following: ```python def islink(self, path): self.getinfo(path) return False ``` Because of this, and contrary to `FS.isdir` and `FS.isfile`, a filesystem implementation simply relying...
## Type of changes - Bug fix - New feature ## Checklist - [x] I've run the latest [black](https://github.com/ambv/black) with default args on new code. - [x] I've updated CHANGELOG.md...
I wrapped my `removetree` call to include a `hassyspath` check, and use `shutil.rmtree` if it it does. I think I can add this to `base.py` after the lock here: https://github.com/PyFilesystem/pyfilesystem2/blob/fs/base.py#L1223...
## Type of changes - [ ] Bug fix - [ ] New feature - [ ] Documentation / docstrings - [ ] Tests - [x] Other ## Checklist -...
Hi Will, now that the typing is merged, I was thinking about adding support for a `visibility` (or `hidden`) info namespace, with a simple `hidden` key. If that does seem...