Skip to main content

Obtains the relative path of all files in the TreeScript.

Project description

TreeScript Files

treescript-files is a command-line tool built in Python designed to interpret a unique file format known as "treescript." This format is used to describe file and folder directory structures. The primary function of treescript-files is to parse a treescript file and output a comprehensive list of file paths defined within the script to the standard output. An optional parameter allows users to prefix all file paths with a specified parent directory, enhancing the tool's flexibility in various file management tasks.

Features

  • Parse Treescript: Efficiently reads and processes treescript files.
  • Output File Paths: Prints the complete list of file paths from the treescript.
  • Directory Prefixing: Optional addition of a parent directory to all file paths.

Installation

To install treescript-files, you will need Python installed on your system. The tool can be installed directly via pip:

pip install treescript-files

Alternatively, you can clone this repository and install the tool manually:

git clone https://github.com/yourusername/treescript-files.git
cd treescript-files
python setup.py install

Usage

To use treescript-files, run the following command in your terminal:

treescript-files <path_to_treescript_file>

Options

  • --parent <directory>: Prefixes all output file paths with the specified directory.

Example

Given a treescript file named example.treescript, you can display the file paths as follows:

treescript-files example.treescript

To prefix the paths with a parent directory src/:

treescript-files --parent src/ example.treescript

Contributing

Contributions to treescript-files are welcome!

License

treescript-files is open-source software licensed under the GPLv3 License. See the LICENSE file for more details.

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

treescript_files-0.1.1.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

treescript_files-0.1.1-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file treescript_files-0.1.1.tar.gz.

File metadata

  • Download URL: treescript_files-0.1.1.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for treescript_files-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9a5a68a50492129652b0be968b27c6076e2348bd85c2631f040883ce83a23a96
MD5 61cde1bbfc77fca806cb2dfa2b507ba8
BLAKE2b-256 26ffbd8600b5db03985bca5326083ddb5ca2e60504bba7c3c2f75e4c06ca79ba

See more details on using hashes here.

File details

Details for the file treescript_files-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for treescript_files-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 08e48e28daeeae83a28f964b25b0b7eb459766f390e2e0f1bb15e0e27157fcb6
MD5 e3d2b8d7f34ed320105d30f6693309d6
BLAKE2b-256 9e4be4bf357c472ce66b4048d10b948fc8712554118e126d2ab83a06fd5cf698

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