Skip to main content

Toolbox for various path analysis and creating directories.

Project description

Get directory, filename or extension from path:

from path_analysis_toolbox import PathAnalyser
PathAnalyser.directory_filename_extension("C:\\Example\\directory\\filename.mp3")
# ("C:\\Example\\directory", "filename", "mp3")

PathAnalyser.directory("C:\\Example\\directory\\filename.mp3") # "C:\\Example\\directory"
PathAnalyser.filename("C:\\Example\\directory\\filename.mp3") # "filename"
PathAnalyser.extension("C:\\Example\\directory\\filename.mp3") # "mp3"

PathAnalyser.directory_filename_extension("C:\\Example\\directory\\filename")
# ("C:\\Example\\directory", "filename", "")
PathAnalyser.directory_filename_extension("C:")
# ("", "C:", "")

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

path_analysis_toolbox-0.0.3.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

path_analysis_toolbox-0.0.3-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

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