Skip to main content

class to join file path in a chain manner

Project description

Brief

convenient to join file path in a chain manner:

s = Path('.')
s = s.join('a', 'b').join('..')
# s == 'a'

it uses os.path.join and always normalizes the path with os.path.normpath
while os.path.join join the 'a', '..' to 'a/..'

Change Log

v0.1.3, 2019-2-9

  • change to run with python3

v0.1.2, 2018-6-7

  • improve comment and change to English
  • change directory structure and update setup.py
  • add tests.py

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

sine.path-0.1.3.tar.gz (4.2 kB view hashes)

Uploaded Source

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