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 Code style: Black https://img.shields.io/badge/skeleton-2023-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.0.tar.gz (11.0 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.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jaraco.path-3.7.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for jaraco.path-3.7.0.tar.gz
Algorithm Hash digest
SHA256 bd55b67bbf53557d1fe1059d27fc4c2652ba1e94451a14f6678235d7703cf650
MD5 17cb2a412540b8026e243a05b98840c7
BLAKE2b-256 aab4b86cfcf87d841271a56903a75001e58f1e6b5fdb3a211c1ec5ad6e7de03a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jaraco.path-3.7.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for jaraco.path-3.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12af6d2eebff5970471390281692b35e1d9ef55caf8033f8ed38c297fe704345
MD5 5857eeb7ba5329197e938121cd935b3d
BLAKE2b-256 3c7791eee32a2e145965a2b8487690b96a57c4e7917600a0130a3b0b62cca80c

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