diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 0b1c27806..93a1f08cc 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -196,6 +196,10 @@ class Pathname children.select{ |child| child.directory? } end + def resolved_path + self.symlink? ? dirname+readlink : self + end + def resolved_path_exists? (dirname+readlink).exist? end |
