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.2.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jaraco.path-3.7.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jaraco_path-3.7.2.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for jaraco_path-3.7.2.tar.gz
Algorithm Hash digest
SHA256 1263c4bb481002e83a96e9253915b33241ac3e1ed6219a2793d3121f65159107
MD5 1e3e22665d2a4c58e632d99fa54b0967
BLAKE2b-256 0ab405c65ee5637d8156863bb34340cb41f6bd316a019b39ae64632502eb5cfa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jaraco.path-3.7.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for jaraco.path-3.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dfe30433a9e37fb359ca91a62513266d48ed60dcb35e91a12ac0fb0d06367183
MD5 749900e20887502b65e20e2e67db7a8c
BLAKE2b-256 ae0298c441a44d434eef26343bcfc66e43acaa7ff7593fd35ee17a5f10857dc4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page