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

Uploaded Source

Built Distribution

jaraco.path-3.6.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jaraco.path-3.6.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.6.0.tar.gz
Algorithm Hash digest
SHA256 741e28ebb330376cd79622b89ccb95fd9b4aca8296b37911cab30d34f4923c2d
MD5 9bf2957de681b04d7bd74ae65f9f2232
BLAKE2b-256 20b6fc1aa7b3ffd10f222c0f12cef040e5c2e3017f6b37880340db1791bc7ea7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jaraco.path-3.6.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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7800ba4cde74d5de2d9e735448e7fc88206059b2628103535e9bb79fc4ba3554
MD5 9f5b5f9bb46e9b800e52a3bbfbd89407
BLAKE2b-256 3ef55ce54db0e6b1f72c50fe08b1d695ed01e9269361e7a8528aebc040497510

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