Metadata-Version: 2.1
Name: yaml2tree
Version: 0.3
Summary: Creates a tree of directories, specified using nested lists in YAML
Home-page: https://github.com/0cd/yaml2tree
Author: Puneet Arora
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3
Description-Content-Type: text/markdown
Requires-Dist: pyyaml


# 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/


