Skip to content
Snippets Groups Projects
Commit 5f5f820d authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

Add Pathname.resolved_path

parent 5d3a2261
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment