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

Uploaded Source

Built Distribution

jaraco.path-3.5.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for jaraco.path-3.5.0.tar.gz
Algorithm Hash digest
SHA256 eb87aa212f6777b4efc230a6ff3cc071e148c4b9b390dd44c5041310aad39c14
MD5 2d21f7267ce49bbcb3229c41c89bc929
BLAKE2b-256 b8229b39c369d05886372a98c7d25868e4a47312f729db525a0d79a33d113bfd

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for jaraco.path-3.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7cccc4e042259a7a5f3e3541592c33b627d9c44bf1ae275773b26d2d5aa590c8
MD5 9774db00166d26d122220238f593db3e
BLAKE2b-256 640c202cb86ba4abbbb3bb42b6798abddf21ea64da6f531d2854977afd684e3e

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