Skip to main content

dkfileutils - file and directory utilities

Project description

https://readthedocs.org/projects/dkfileutils/badge/?version=latest https://codecov.io/gh/datakortet/dkfileutils/branch/master/graph/badge.svg https://scrutinizer-ci.com/g/datakortet/dkfileutils/badges/quality-score.png?b=master

Documentation: http://dkfileutils.readthedocs.io/

Contains the following modules

See the documentation link (above) and module documentation for detailed docs.

changed

Code to check if directory contents have changed since last check.

listfiles

Yield (digest, fname) tuples for all interesting files in dirname. The file names are relative to curdir unless otherwise specified.

path

“Poor man’s pathlib”. Object-oriented wrapper around os.path and friends. Similar to the Python 3 pathlib, however paths are str subclasses and thus much easier to use in an environment where os.path calls are interspersed with object-oriented code.

Brett Cannon strongly dislikes paths being str subclasses, see https://snarky.ca/why-pathlib-path-doesn-t-inherit-from-str/ While I can agree with him in principle, this is clearly a case of “practicality beats purity”. The official pathlib version of '/b/' in Path('/a/b/c') is rather baroque.

pfind

Find directory where a file is located by walking up parent directories.

which

Functions for finding executable files on the path.

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

dkfileutils-1.4.7.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

dkfileutils-1.4.7-py2.py3-none-any.whl (10.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file dkfileutils-1.4.7.tar.gz.

File metadata

  • Download URL: dkfileutils-1.4.7.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for dkfileutils-1.4.7.tar.gz
Algorithm Hash digest
SHA256 9ebe1868469828dd4ee5d178eb195c6c29a72a24fe0dba8e9f0fc434ee44e33f
MD5 1653be64f128d36a4d0bf0c7c7ce1c27
BLAKE2b-256 beed47a8a2c155b9bf3753c27f986e51fde856fa124d39cf821c93d49f402214

See more details on using hashes here.

File details

Details for the file dkfileutils-1.4.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for dkfileutils-1.4.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c86749c6a818c125fd913a4768644812e10105dd313dd6c4c3fd3de0196acfb2
MD5 9bfaf70abbe3411993b9f64e5aae7e5f
BLAKE2b-256 32bfd10d798996f664ba47fcf662a63204b599fc0097ca0784cfa5654c306264

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