Module: FileUtils
- Defined in:
- lib/ext/fileutils.rb
Class Method Summary collapse
Class Method Details
.touch_p(file) ⇒ Object
3 4 5 6 7 |
# File 'lib/ext/fileutils.rb', line 3 def self.touch_p(file) dir = File.dirname(file) File.exist?(dir) or FileUtils.mkdir_p(dir) touch(file) end |