else
tmp = dir
end
- if e2util.exists(resultconfig(tmp)) then
- table.insert(results, tmp)
- else
- --try subfolder
- gather_result_paths(info,tmp, results)
+ local s = e2util.stat(info.root .. "/" .. resultdir(tmp), false)
+ if s.type == "directory" then
+ if e2util.exists(resultconfig(tmp)) then
+ table.insert(results, tmp)
+ else
+ --try subfolder
+ gather_result_paths(info,tmp, results)
+ end
end
end
return results
else
tmp = dir
end
- if e2util.exists(sourceconfig(tmp)) then
- table.insert(sources, tmp)
- else
- --try subfolder
- gather_source_paths(info,tmp, sources)
+ local s = e2util.stat(info.root .. "/" .. sourcedir(tmp), false)
+ if s.type == "directory" then
+ if e2util.exists(sourceconfig(tmp)) then
+ table.insert(sources, tmp)
+ else
+ --try subfolder
+ gather_source_paths(info,tmp, sources)
+ end
end
end
return sources