Skip to main content

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 and os.path.isfile())
  • Add ischild()
  • Add samefile() (from shutil.move() in Python 3.5)
  • Add move() (from shutil.move() in Python 3.5)
  • Add atomic_file.discard()
  • Add atomic_file.dispatch()
  • Change atomic_file.__enter__(), now returns self instead of wrapped tempfile

v1.5.0 (2019-09-27)

  • Add mode argument to nr.fs.listdir()
  • Add nr.fs.atomic_file class
  • Alias os.rename as nr.fs.rename

v1.4.0 (2019-04-16)

  • Add nr.fs.remove() function

v1.3.0 (2019-04-16)

  • Use pkgutil instead of pkg_resources namespace packages

v1.2.0 (2019-04-16)

  • Fix tempfile.closed

v1.1.1 (2018-08-21)

  • Fix issub() and add at_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 where os.name != 'nt'

v1.0.2 (2018-07-14)

  • Changed get_long_path_name() is now an alias for fixcase() (backwards compatibility until 1.1.0)
  • Changed canonical() so that it invokes fixcase() on case-insensitive filesystems
  • When tempfile(encoding) parameter was not specified, its encoding property will still return the applied text file encoding after it has been opened
  • Add fixcase() as replacement for get_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 in setup.py

Project details


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)

Uploaded Source

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

Hashes for nr.fs-1.6.1.tar.gz
Algorithm Hash digest
SHA256 ff6ca4579ba61c8eb2516eadca44184340b61ffab052343b623232e0cbaf715c
MD5 1d76bc1b7c4054847021d64b4c0f9ec6
BLAKE2b-256 ab09d9f23a886e6d37df0f7d7b85f0c3a6401ca6f120fa392aa5902d8cf01f5f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page