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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file treescript_files-0.2.tar.gz
.
File metadata
- Download URL: treescript_files-0.2.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07d00c17644b02551e9d9525b3c93ada07a4e03d131d8a43896543fe0de45421 |
|
MD5 | 4393bce3eab52565de8f2ae60768bd7c |
|
BLAKE2b-256 | 4e855c2c95b9c0b9b258f6675af5e5dd6ce5056fc542bd0d50f8972e809bf57a |
File details
Details for the file treescript_files-0.2-py3-none-any.whl
.
File metadata
- Download URL: treescript_files-0.2-py3-none-any.whl
- Upload date:
- Size: 23.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 852f15b865b7dd8e10e7f6b6f028c092b3b4a19f5fbf82910e38792e9360f062 |
|
MD5 | 17b6b8481cf7bf320b79966e71474b78 |
|
BLAKE2b-256 | 20355a580ede961035ce7cfcccec8b0eaa7d69c219092da9c2ca10968e6b10ff |