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 directorymake_placeholder: optional flag, defaultFalse: 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 yieldedskip_suffixes: optional iterable if suffixes to ignore; if provided files ending in these suffixes will not be yieldedsort_paths: optional flag specifying that filenames should be sorted, defaultFalse
Release Log
Release 20220327: New module cs.fs to contain more filesystem focussed functions than cs.fileutils, which is feeling a bit bloated.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| cs.fs-20220327.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cs.fs-20220327-py3-none-any.whl | Python 3 | none | any | Details |
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
|