Option to create target folder if it doesn't exist #4

daaain opened this Issue Aug 1, 2012 · 1 comment


None yet
2 participants

daaain commented Aug 1, 2012

Would it be possible to have an option to create the target folder on demand?

At the moment I'm using a somewhat dirty hack to make sure the target folder exists:

guard 'copy', :from => 'src/common/img', :to => 'build/img', :delete  => true, :verbose => true do
  puts "Starting to watch image files."
  Dir.mkdir('build/img') unless File.directory?('build/img')

I also use Guard to create a build from scratch on the CI server on each commit where this is quite useful to have.



marcisme commented Aug 2, 2012

I've thought about a create option as well. The next thing on my todo list is to refactor the option validation, but I'll look into this after I finish that.

marcisme closed this in 45ccd7c Aug 12, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment