Skip to main content

miscellaneous path functions

Project description

https://img.shields.io/pypi/v/jaraco.path.svg https://img.shields.io/pypi/pyversions/jaraco.path.svg tests Code style: Black https://img.shields.io/badge/skeleton-2022-informational

Hidden File Detection

jaraco.path provides cross platform hidden file detection:

from jaraco import path
if path.is_hidden('/'):
    print("Your root is hidden")

hidden_dirs = filter(is_hidden, os.listdir('.'))

Directory Builder

When testing (and perhaps in other cases), it’s often necessary to construct a tree of directories/files. This project provides a build function to simply create such a directory from a dictionary definition:

from jaraco.path import build
build(
    {
        'foo': 'Content of foo',
        'subdir': {
            'foo': 'Content of subdir/foo',
        },
    },
)

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

jaraco.path-3.4.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

jaraco.path-3.4.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file jaraco.path-3.4.0.tar.gz.

File metadata

  • Download URL: jaraco.path-3.4.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for jaraco.path-3.4.0.tar.gz
Algorithm Hash digest
SHA256 1594f3fcf760485fc9d8e07ba258be995953e72b308d7c4c93586d1552536086
MD5 61b8bd0d246afc9974e23a45640195fb
BLAKE2b-256 36d6a1324cc68919e85d22e45381659e9b8ea4d00f5d449487c002a3c0472c98

See more details on using hashes here.

File details

Details for the file jaraco.path-3.4.0-py3-none-any.whl.

File metadata

  • Download URL: jaraco.path-3.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for jaraco.path-3.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d8cd699f887eb5523acd8215674b6cea2b83d01bf5a75ebff1cc29649eae0e7
MD5 c33592cd8225798fd969b8ad7f30b052
BLAKE2b-256 52db8ce7ef65a8caa6c9abb69bdbd6a02de8b2432bed140e3bb6940daabfbe76

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