Skip to main content

Buildout recipe to create files and directories

Project description


This recipe creates files and directories in a buildout.


This recipe offers the following entry points:

  • mkdir
  • mkfile


This is a minimal buildout.cfg which makes use of the mkdir recipe:

parts = dirs

recipe = tranchitella.recipe.fs:mkdir
paths =

This will create the directories specified by the paths attribute.


This is a minimal buildout.cfg which makes use of the mkfile recipe:

parts = conffiles

recipe = tranchitella.recipe.fs:mkfile
template = ${buildout:directory}/templates/config
path = ${buildout:directory}/etc/config
mode = 0644
database = postgres

This will create the file specified by the path attribute using the given template; the file will be customized using string interpolations of the options specified in the buildout part (eg. %(database)s will be replaced with the string postgres).

0.3 (2010-03-23)

  • Do not consider directory and files as “created” by buildout, otherwise they will be automatically removed by buildout when the recipe is uninstalled.
  • Added logging

0.2 (2010-03-07)

  • Added a new recipe entry point mkfile.

0.1 (2010-02-29)

  • Initial release.

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
tranchitella.recipe.fs-0.3.tar.gz (10.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page