Skip to content

Instantly share code, notes, and snippets.

@benek
Created July 11, 2011 04:56
Show Gist options
  • Save benek/1075329 to your computer and use it in GitHub Desktop.
Save benek/1075329 to your computer and use it in GitHub Desktop.
Just a simple Groovy script for creating placeholders...
new File("/path/to/base/dir").eachDirRecurse {
if (it.isDirectory() && !it.list().length) new File("$it.absolutePath/PLACEHOLDER") << ''
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment