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.2.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.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ezdir-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 385cb5c596717891524db2498b803c25fbc2d0e3be4fa26b7d79db96d10edec9
MD5 5bd4742345d36b2a37803cc33594fd81
BLAKE2b-256 297fafc4002fabbbdf8825f73881df89cff9c86451edbc67acb513ad461b5870

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ezdir-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f243a4a5efeee535b506b5f50a1dfc584d10179f4ccdbc85546d45c50606361b
MD5 19cffbbe15a73228a2b2417b7d8b1824
BLAKE2b-256 4f6a83c552bbfffb27129c5e8cc48de799f20bcc9348a0c5cbd9f017cdb3e096

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