Skip to content

Instantly share code, notes, and snippets.

@johnnyicon
Last active August 29, 2015 14:10
Show Gist options
  • Save johnnyicon/0f0a45127d88df3b8adc to your computer and use it in GitHub Desktop.
Save johnnyicon/0f0a45127d88df3b8adc to your computer and use it in GitHub Desktop.
Add keep files recursively to a directory
#!/usr/bin/ruby
Dir['**/'].each do |dir|
puts "Placing .keep file in #{dir}"
`touch #{dir}.keep`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment