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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for jaraco.path-3.4.1.tar.gz
Algorithm Hash digest
SHA256 c2dea7e9fa588ab0f05aefb9f6539e54b0f9d5e8b124df125dcf238cee8d355d
MD5 fa89b710d56905c7c985af64ea5a8a50
BLAKE2b-256 41caa66f9fcd7f0d879996c1ccd2034981089b6ec17637be44fd54bd6b1fa014

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for jaraco.path-3.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 52e3f873433d110b67358728ed3edb9a42a52721db1aee92e57fcb3433e1485b
MD5 22d7426413d68e3e608e8680a3c10e98
BLAKE2b-256 eaff7670304c19e9f2b22b4054f7e1213e884b3edf230add203d462ccebb7611

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