
Product
Redesigned Repositories Page: A Faster Way to Prioritize Security Risk
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
.. image:: https://readthedocs.org/projects/dkfileutils/badge/?version=latest
.. image:: https://codecov.io/gh/datakortet/dkfileutils/branch/master/graph/badge.svg :target: https://codecov.io/gh/datakortet/dkfileutils
.. image:: https://scrutinizer-ci.com/g/datakortet/dkfileutils/badges/quality-score.png?b=master :target: https://scrutinizer-ci.com/g/datakortet/dkfileutils/
Documentation: http://dkfileutils.readthedocs.io/
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.
FAQs
dkfileutils - file and directory utilities
We found that dkfileutils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
Security News
Slopsquatting is a new supply chain threat where AI-assisted code generators recommend hallucinated packages that attackers register and weaponize.
Security News
Multiple deserialization flaws in PyTorch Lightning could allow remote code execution when loading untrusted model files, affecting versions up to 2.4.0.