Project

General

Profile

Bug #10616 ยป ruby-changes.patch

alex_slynko (Alex Slynko), 12/18/2014 10:38 AM

View differences:

lib/tmpdir.rb (working copy)
# FileUtils.remove_entry dir
# end
#
def Dir.mktmpdir(prefix_suffix="d", *rest)
path = Tmpname.create(prefix_suffix, *rest) {|n| mkdir(n, 0700)}
def Dir.mktmpdir(prefix_suffix=nil, *rest)
path = Tmpname.create(prefix_suffix || "d", *rest) {|n| mkdir(n, 0700)}
if block_given?
begin
yield path
    (1-1/1)