Project

General

Profile

Bug #3556 ยป 0001-Workaround-File.stat-Errno-EACCES-bug-for-mkdir_p.patch

luislavena (Luis Lavena), 07/11/2010 05:19 AM

View differences:

lib/fileutils.rb
OPT_TABLE['makedirs'] = [:mode, :noop, :verbose]
def fu_mkdir(path, mode) #:nodoc:
path = path.sub(%r</\z>, '')
path.sub!(%r</\z>, '')
if mode
Dir.mkdir path, mode
File.chmod mode, path
    (1-1/1)