Skip to main content

Creates a tree of directories, specified using nested lists in YAML

Project description

yaml2tree

Creates a tree of directories, specified using nested lists in YAML

Usage:

[mode=XXX] yaml2tree <yaml-file>

    mode=XXX       set this env var to provide a chmod-style octal value to use as file mode
                   for the created directories.

    <yaml-file>    path to YAML file containing the directory tree specification.
                   The YAML is a list of values, where every value is either a directory name
                   or a list of the same form. The YAML is processed top-down and whenever a
                   nested list is encountered, any directories in it are created inside the 
                   directory last seen on the outer list.

                   For example, the following definition -
                       - foo
                       -   - bar
                           - baz
                           - tam
                       - foo1
                       -   - bar2
                           -   - baz3
                       - soap

                   creates the following directory tree in the current working directory -
                       foo/
                           bar/
                           baz/
                           tam/
                       foo1/
                           bar2/
                               baz3/
                       soap/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for yaml2tree, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size yaml2tree-0.3-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size yaml2tree-0.3.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page