pyfilesystem2
pyfilesystem2 copied to clipboard
Python's Filesystem abstraction layer
It should be possible to implement OSFS.movedir with an os.rename call, to avoid unnecessary copying.
Consider the two different types generated in the following transcript: ``` >>> fs.__version__ '2.4.11' >>> type(fs.open_fs(".").open("cumulusci.yml").name) >>> type(open("cumulusci.yml").name) ``` This is inconvenient when porting code from the Python stdlib, or...
Implemented only in OSFS but with tests in FSTestCases Signed-off-by: Leonard Crestez Not tested on windows
I have recently been using the ftp file system against a container running the vsftpd server and have come upon an issue that prevents the following snippet of code working:...
This issue is derived from #330 Windows File URI spec is explained here: https://blogs.msdn.microsoft.com/ie/2006/12/06/file-uris-in-windows/ Reference implementation is done in C# by Microsoft in 2003: https://referencesource.microsoft.com/#System/net/System/UriExt.cs,1 Failed attempts: 1) used urllib's...
I would like to write a module, that I decrypt during program execution, into an in-memory filesystem, so that he decrypted file is not on disk. Then I would like...
When source and destination are the same then move_file deletes the file; and copy_file writes the new file overwriting the data so leaves the file name but with no content....
Set 'typing' package to be installed only on Python 2.7. This fixes the import issue raised in Python 3.7 and 3.8 on using the 'typing' module. [Issue](https://github.com/PyFilesystem/pyfilesystem2/issues/391) report here with...
With python3.8 tests are failing with this error. ``` from typing import Any File "/.tox/django22/lib/python3.8/site-packages/typing.py", line 1357, in class Callable(extra=collections_abc.Callable, metaclass=CallableMeta): File "/.tox/django22/lib/python3.8/site-packages/typing.py", line 1005, in __new__ self._abc_registry = extra._abc_registry...
For local file system I do this to get a list of files: ``` local = fs.open_fs("osfs://") for f in local.glob("*"): print(f.path) ``` For s3 I do the same code...