Commit 7a6d558c authored by Fabio Pelosin's avatar Fabio Pelosin

[PathList] Check that root exists before reading the file system.

parent 30cca1ca
......@@ -43,6 +43,9 @@ module Pod
# lists.
#
def read_file_system
unless root.exist?
raise Informative, "Attempt to read non existent folder `#{root}`."
end
root_length = root.to_s.length+1
paths = Dir.glob(root + "**/*", File::FNM_DOTMATCH)
paths = paths.reject { |p| p == "#{root}/." || p == "#{root}/.." }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment