lib/numru/gdir.rb in gphys-1.2.2.1 vs lib/numru/gdir.rb in gphys-1.4.3
- old
+ new
@@ -944,10 +944,11 @@
ftype
end
def __can_be_a_gdir(path)
ftype = __ftype(path)
- if ftype=="directory" || ftype=="file" && GPhys::IO::file2type(path)
+ if ftype=="directory" || ftype=="file" &&
+ ( GPhys::IO::file2type(path) rescue false )
true
else
false
end
end