Skip to main content

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

Reason this release was yanked:

deprecated

Project description

yaml2tree

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

Usage:

[mode=XXX] [noop=1] 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.

    noop=1         if this env var is set, no directories are created, but the output displays
                   which ones will be created.

    <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.

Source Distribution

yaml2tree-0.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yaml2tree-0.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file yaml2tree-0.2.tar.gz.

File metadata

  • Download URL: yaml2tree-0.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.3

File hashes

Hashes for yaml2tree-0.2.tar.gz
Algorithm Hash digest
SHA256 d1724353156c4ca83fadb21e9b7dbbb60870b67a52365636d74159c67c394de3
MD5 c428f9005cf904b5451f4ca2ae362c68
BLAKE2b-256 f16a082908725d159424a640d0486495ce270941207d37868039e6bc8d465ba6

See more details on using hashes here.

File details

Details for the file yaml2tree-0.2-py3-none-any.whl.

File metadata

  • Download URL: yaml2tree-0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.3

File hashes

Hashes for yaml2tree-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9ccefe9b9de5bd9ab35aab26edca553c5b1159405a6a5b771b376b299d84dc1b
MD5 6721838c16b73e414c2a0415f6d1937b
BLAKE2b-256 23abe1fe24b4e9fc0b1bbb10e799e36d9a4c48f33098e049e19cf25d2016d92f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page