diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 78734677a..0b1c27806 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -195,6 +195,10 @@ class Pathname def subdirs children.select{ |child| child.directory? } end + + def resolved_path_exists? + (dirname+readlink).exist? + end end # sets $n and $d so you can observe creation of stuff @@ -209,9 +213,6 @@ module ObserverPathnameExtension puts "rmdir #{to_s}" if ARGV.verbose? $d+=1 end - def resolved_path_exists? - (dirname+readlink).exist? - end def mkpath super puts "mkpath #{to_s}" if ARGV.verbose? |
