global
def directory(dir)
directory "testdata/doc"
Example:
Declare a set of files tasks to create the given directories on demand.
def directory(dir) Rake.each_dir_parent(dir) do |d| file_create d do |t| mkdir_p t.name if ! File.exist?(t.name) end end end