class Pathutil
def enforce_root(root)
def enforce_root(root) curr, root = expanded_paths(root) if curr.in_path?(root) return curr else File.join( root, curr ) end end
def enforce_root(root) curr, root = expanded_paths(root) if curr.in_path?(root) return curr else File.join( root, curr ) end end