PyFilesystem2 v2.4.13 Release Notes
Release Date: 2021-03-27 // about 3 years ago-
โ Added
- โ Added FTP over TLS (FTPS) support to FTPFS. Closes #437, #449.
- ๐ป
PathError
now supports wrapping an exception using theexc
argument. Closes #453. - ๐ Better documentation of the
writable
parameter offs.open_fs
, and hint about usingfs.wrap.read_only
when a read-only filesystem is required. Closes #441. - ๐ Copy and move operations now provide a parameter
preserve_time
that, when passed asTrue
, makes sure the "mtime" of the destination file will be the same as that of the source file.
๐ Changed
- ๐ Make
FS.upload
explicit about the expected error when the parent directory of the destination does not exist. Closes #445. - ๐ Migrate continuous integration from Travis-CI to GitHub Actions and introduce several linters again in the build steps (#448). Closes #446.
- ๐
Stop requiring
pytest
to run tests, allowing any test runner supportingunittest
-style test suites. - ๐
FSTestCases
now builds the large data required forupload
anddownload
tests only once in order to reduce the total testing time. - ๐
MemoryFS.move
andMemoryFS.movedir
will now avoid copying data. Closes #452. - ๐
FS.removetree("/")
behaviour has been standardized in all filesystems, and is expected to clear the contents of the root folder without deleting it. Closes #471. - ๐
FS.getbasic
is now deprecated, as it is redundant withFS.getinfo
, andFS.getinfo
is now explicitly expected to return the basic info namespace unconditionally. Closes #469.
๐ Fixed
- ๐ Make
FTPFile
,MemoryFile
andRawWrapper
acceptarray.array
arguments for thewrite
andwritelines
methods, as expected by their base classio.RawIOBase
. - ๐ Various documentation issues, including
MemoryFS
docstring not rendering properly. - Avoid creating a new connection on every call of
FTPFS.upload
. Closes #455. - ๐
WrapReadOnly.removetree
not raising aResourceReadOnly
when called. Closes #468. WrapCachedDir.isdir
andWrapCachedDir.isfile
raising aResourceNotFound
error on non-existing path (#470).- ๐ง
FTPFS
not listing certain entries with sticky/SUID/SGID permissions set by Linux server (#473). Closes #451. - โ
scandir
iterator not being closed explicitly inOSFS.scandir
, occasionally causing aResourceWarning
to be thrown. Closes #311. - Incomplete type annotations for the
temp_fs
parameter ofWriteTarFS
andWriteZipFS
. Closes #410.