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.1.tar.gz
(10.8 kB
view details)
File details
Details for the file nr.fs-1.6.1.tar.gz
.
File metadata
- Download URL: nr.fs-1.6.1.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff6ca4579ba61c8eb2516eadca44184340b61ffab052343b623232e0cbaf715c |
|
MD5 | 1d76bc1b7c4054847021d64b4c0f9ec6 |
|
BLAKE2b-256 | ab09d9f23a886e6d37df0f7d7b85f0c3a6401ca6f120fa392aa5902d8cf01f5f |