All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Start testing on PyPy. Due to #342 we have to treat PyPy builds specially and allow them to fail, but at least we'll be able to see if we break something aside from known issues with FTP tests.
- Include docs in source distributions as well the whole tests folder,
ensuring
conftest.pyis present, fixes #364. - Stop patching copy with Python 3.8+ because it already uses sendfile.
- Added geturl for TarFS and ZipFS for 'fs' purpose. NoURL for 'download' purpose.
- Added helpful root path in CreateFailed exception #340
- Added Python 3.8 support
- Fixed tests leaving tmp files
- Fixed typing issues
- Fixed link namespace returning bytes
- Fixed broken FSURL in windows #329
- Fixed hidden exception at fs.close() when opening an absent zip/tar file URL #333
- Fixed abstract class import from
collectionswhich would break on Python 3.8 - Fixed incorrect imports of
mockon Python 3 - Removed some unused imports and unused
requirements.txtfile - Added mypy checks to Travis. Closes #332.
- Fixed missing
errno.ENOTSUPon PyPy. Closes #338. - Fixed bug in a decorator that would trigger an
AttributeErrorwhen a class was created that implemented a deprecated method and had no docstring of its own.
- Entire test suite has been migrated to pytest. Closes #327.
- Style checking is now enforced using
flake8; this involved some code cleanup such as removing unused imports.
- Fixed broken WrapFS.movedir #322
- Restored fs.path import
- Fixed potential race condition in makedirs. Fixes #310
- Added missing methods to WrapFS. Fixed #294
MemFSnow immediately releases all memory it holds whenclose()is called, rather than when it gets garbage collected. Closes issue #308.FTPFSnow translatesEOFErrorintoRemoteConnectionError. Closes #292- Added automatic close for filesystems that go out of scope. Fixes #298
geturlwill return URL with user/password if needed @zmej-serow
- Flag to OSFS to disable env var expansion
- Implemented
geturlin FTPFS @zmej-serow
- Fixed FTP test suite when time is not UTC-0 @mrg0029
- Fixed issues with paths in tarfs #284
- Dropped Python3.3 support
- Restored deprecated
setfilemethod with deprecation warning to change towritefile - Fixed exception when a tarfile contains a path called '.' #275
- Made TarFS directory loading lazy
- Detect case insensitivity using by writing temp file
- OSFS fail in nfs mounts
- Fixed broken "case_insensitive" check
- Fixed Windows test fails
- Fixed exception when Python runs with -OO
- Fixed hash method missing from WrapFS
- Added
excludeandfilter_dirsarguments to walk - Micro-optimizations to walk
- Add encoding check in OSFS.validatepath
- IllegalBackReference had mangled error message
- FS.hash method
Registry.installreturns its argument.
A few methods have been renamed for greater clarity (but functionality remains the same).
The old methods are now aliases and will continue to work, but will
issue a deprecation warning via the warnings module.
Please update your code accordingly.
getbytes->readbytesgetfile->downloadgettext->readtextsetbytes->writebytessetbinfile->uploadsettext->writetext
- Changed default chunk size in
copy_file_datato 1MB - Added
chunk_sizeandoptionstoFS.upload
- Incomplete FTPFile.write when using
workers@geoffjukes - Fixed AppFS not creating directory
- Added load_extern switch to opener, fixes #228 @althanos
- Support for Windows NT FTP servers @sspross
- Root dir of MemoryFS accesible as a file
- Packaging issues @televi
- Deprecation warning re collections.Mapping
- Added PEP 561 py.typed files
- Use sendfile for faster copies @althonos
- Atomic exclusive mode in Py2.7 @sqwishy
- Fixed lstat @kamomil
- fs.glob support
- Fixed for Winows paths #152
- Fixed ftp dir parsing (@dhirschfeld)
- fs.copy and fs.move disable workers if not thread-safe
- fs.match detects case insensitivity
- Open in exclusive mode is atomic (@squishy)
- Exceptions can be pickleabe (@Spacerat)
- workers parameter to fs.copy, fs.move, and fs.mirror for concurrent copies
- timeout to FTP opener
- Fix for Markdown on PyPi, no code changes
- Handling of broken unicode on Python2.7
- Added fs.getospath
- Typing information
- Added Info.suffix, Info.suffixes, Info.stem attributes
- Fixed issue with implied directories in TarFS
- Changed path.splitext so that 'leading periods on the basename are ignored', which is the behaviour of os.path.splitext
- MultiFS.listdir now correctly filters out duplicates
- encoding issue with TarFS
- CreateFailed now contains the original exception in
excattribute
- fs.getfile function
- Modified walk to use iterators internally (for more efficient walking)
- Modified fs.copy to use getfile
- Issue with ZipFS files missing a byte
- fs.parts
- Walk now yields Step named tuples as advertised
- Added max_depth parameter to fs.walk
- ZipFS files are now seekable (Martin Larralde)
No changes, pushed wrong branch to PyPi.
- Fixed ignore_errors in walk.py
- settext, appendtext, appendbytes, setbytes now raise a TypeError if the type is wrong, rather than ValueError
- More efficient feature detection for FTPFS
- Fixes for
fs.filesize - Major documentation refactor (Martin Larralde)
- fs.mirror
- Added params support to FS URLs
- Many fixes to FTPFS contributed by Martin Larralde.
- MountFS and MultiFS now accept FS URLS
- Add openers for AppFS
- Lstat info namespace
- Link info namespace
- FS.islink method
- Info.is_link method
- Fixed entry point breaking pip
- Opener refinements
- Fixed potential for deadlock in MemoryFS
- Added factory parameter to opendir.
- ClosingSubFS.
- File objects are all derived from io.IOBase.
- Fix closing for FTP opener.
- Opener extension mechanism contributed by Martin Larralde.
- Support for pathlike objects.
- Stat information was missing from info.
- More specific error when
validatepaththrows an error about the path argument being the wrong type, and changed from a ValueError to a TypeError. - Deprecated
encodingparameter in OSFS.
- New
copy_if_newer' functionality incopy` module.
- Improved
FTPFSsupport for non-strict servers.
- Improved FTP support for non-compliant servers
- Fix for ZipFS implied directories
- TarFS contributed by Martin Larralde
- FTPFS bugs.
New version of the PyFilesystem API.