Filesystem and path manipulation tools.
Project description
nr.fs
– Filesystem and path manipulation tools.
Note: To use the
nr.fs.glob()
function, you need the glob2 module installed. It is not listed an install requirement to this module.
Changes
v1.6.0 (2020-02-24)
- Change how a case-sensitive filesystem is detected (using
sys.executable
, uppercasing andos.path.isfile()
) - Add
ischild()
- Add
samefile()
(fromshutil.move()
in Python 3.5) - Add
move()
(fromshutil.move()
in Python 3.5) - Add
atomic_file.discard()
- Add
atomic_file.dispatch()
- Change
atomic_file.__enter__()
, now returnsself
instead of wrappedtempfile
v1.5.0 (2019-09-27)
- Add
mode
argument tonr.fs.listdir()
- Add
nr.fs.atomic_file
class - Alias
os.rename
asnr.fs.rename
v1.4.0 (2019-04-16)
- Add
nr.fs.remove()
function
v1.3.0 (2019-04-16)
- Use
pkgutil
instead ofpkg_resources
namespace packages
v1.2.0 (2019-04-16)
- Fix
tempfile.closed
v1.1.1 (2018-08-21)
- Fix
issub()
and addat_curr=True
parameter
v1.1.0 (2018-08-18)
- Add
compare_all_timestamps()
function - Add
mtime_consistent_file
class
v1.0.3 (2018-08-06)
- Fix
NameError
on platforms whereos.name != 'nt'
v1.0.2 (2018-07-14)
- Changed
get_long_path_name()
is now an alias forfixcase()
(backwards compatibility until 1.1.0) - Changed
canonical()
so that it invokesfixcase()
on case-insensitive filesystems - When
tempfile(encoding)
parameter was not specified, itsencoding
property will still return the applied text file encoding after it has been opened - Add
fixcase()
as replacement forget_long_path_name()
- Add
tempfile.encoding
property - Add
listdir()
v1.0.1 (2018-07-05)
- Add
nr.fs.isfile_cs()
- Add
nr.fs.get_long_path_name()
- Add
namespace_packages
parameter insetup.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nr.fs-1.6.0.post1.tar.gz
(11.0 kB
view details)
File details
Details for the file nr.fs-1.6.0.post1.tar.gz
.
File metadata
- Download URL: nr.fs-1.6.0.post1.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3eec5cdd691452821693356c03ead37da038e6988383e859fb53aa85e8c9c85 |
|
MD5 | 0134444c3ec7b0b98d751da86a0706e4 |
|
BLAKE2b-256 | be095bbfba89f909b4138d99ae931eb0acfa5cce09adac5a6bf067130c662168 |