Skip to main content

Change working directory up a number of levels or to a named folder

Project description

ezdir

Simple utilities to change the current working directory in Python:

  • up(n) goes up n directory levels.
  • find("foldername") goes up to the first parent folder matching a name.

Installation

pip install ezdir

Example

import ezdir

ezdir.up(2)               # Go up two levels
ezdir.find("scripts")     # Change to a parent folder named 'scripts', errors if it doesn't exist

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

ezdir-0.1.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

ezdir-0.1.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file ezdir-0.1.3.tar.gz.

File metadata

  • Download URL: ezdir-0.1.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.16

File hashes

Hashes for ezdir-0.1.3.tar.gz
Algorithm Hash digest
SHA256 dc800fd45dd459be984f60da88395bca47d06697042c5a4c56b4a92c90d97212
MD5 3b565730291de61d767425fd33fd69df
BLAKE2b-256 9fcc3b8a8f409ac994c3a6a96b5068ef1a5e6451fdc298c51ba34c90f1dd82f5

See more details on using hashes here.

File details

Details for the file ezdir-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ezdir-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.16

File hashes

Hashes for ezdir-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 73b7f104ddd4db47ee0bdafa16d024c579ea23e298112765c3e46be626776639
MD5 13babc2c843ab0fafa746ffdab91115e
BLAKE2b-256 9801da4c77fe0730af9252ac6d99d83c0032348eb521ab4c0bccf7f232f2342f

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