skip to navigation
skip to content

Not Logged In

treeshape 0.1.0

Quickly make files and directory structures.

Latest Version: 0.2.1

treeshape allows you to quickly make file and directory structures on disk.

For example:

from treeshape import make_tree

make_tree('.', [
    'logs/',
    ('README', "A simple directory layout\n"),
    ('data/input', "All of our input data\n"),
    ])

Will create a directory structure that looks like this:

$ find .
.
./logs
./data
./data/input
./README
$ cat README
A simple directory layout
$ cat data/input
All of our input data

This is particularly useful for tests that touch the disk.

 
File Type Py Version Uploaded on Size
treeshape-0.1.0.tar.gz (md5, pgp) Source 2012-07-23 4KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 63 downloads in the last week
  • 303 downloads in the last month