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 Ruff https://img.shields.io/badge/skeleton-2024-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.7.1.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

jaraco.path-3.7.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file jaraco_path-3.7.1.tar.gz.

File metadata

  • Download URL: jaraco_path-3.7.1.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for jaraco_path-3.7.1.tar.gz
Algorithm Hash digest
SHA256 e17c0c0b686022a9b10dc7230b21ce353f5626cf079db3780c405f58501ed78e
MD5 78dce57647898079db61fcaab4b5625b
BLAKE2b-256 7b05afae05807ac384b7f1e6b587566c8acbb4d6a4f65c1366e1c860bb4ec3ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jaraco.path-3.7.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for jaraco.path-3.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8bd6637c0f0e55c3830f15dffde25254b763f64f93176f7b1beefcec77e5c70
MD5 e68b4454613f7719e1c15611bf9e19c8
BLAKE2b-256 5baa02c44e73d977704afadcac3f728470eabc2e473ea0eb53c6f6f046e39588

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