Skip to main content

Assorted filesystem related utility functions, some of which have been bloating cs.fileutils for too long.

Latest release 20220327: New module cs.fs to contain more filesystem focussed functions than cs.fileutils, which is feeling a bit bloated.

Function atomic_directory(*da, **dkw)

Decorator for a function which fills in a directory which calls the function against a temporary directory then renames the temporary to the target name on completion.

Parameters:

  • infill_func: the function to fill in the target directory
  • make_placeholder: optional flag, default False: if true an empty directory will be make at the target name and after completion it will be removed and the completed directory renamed to the target name

Function rpaths(dirpath='.', *, only_suffixes=None, skip_suffixes=None, sort_paths=False)

Yield relative file paths from a directory.

Parameters:

  • dirpath: optional top directory, default '.'
  • only_suffixes: optional iterable of suffixes of interest; if provided only files ending in these suffixes will be yielded
  • skip_suffixes: optional iterable if suffixes to ignore; if provided files ending in these suffixes will not be yielded
  • sort_paths: optional flag specifying that filenames should be sorted, default False

Release Log

Release 20220327: New module cs.fs to contain more filesystem focussed functions than cs.fileutils, which is feeling a bit bloated.

Metadata

Release files for cs-fs 20220327

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cs-fs 20220327
File Size Uploaded Provenance Actions
cs.fs-20220327.tar.gz 3.3 kB Without provenance Details for cs.fs-20220327.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cs-fs 20220327
File Interpreter ABI Platform Actions
cs.fs-20220327-py3-none-any.whl Python 3 none any Details for cs.fs-20220327-py3-none-any.whl

Total release size: 6.7 kB

Release files / cs.fs-20220327.tar.gz

Download URL cs.fs-20220327.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3a41e126e4d07ae6a8b1c707c8c00afc4ab2dc97aee73c445737456af5aeb910
BLAKE2b-256 checksum
How to use checksums
7ddfaf5e9ae696a62883b6166812a8449b0727a4b7d58524ab9787b7ac889469
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / cs.fs-20220327-py3-none-any.whl

Download URL cs.fs-20220327-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8ddcd19818ff7888d0ae8b6e448065295a2e00b30c62381f4ac9e8943f27ac3
BLAKE2b-256 checksum
How to use checksums
6ed0afb6e6636b594d0696e32d50eefc3de7fd65f467429e589598c0c564836a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Security for cs-fs 20220327

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page