ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject DirectoryScanner and "strange" File entities
Date Mon, 03 Mar 2014 13:39:15 GMT
Hi all,

I've been looking into Bugzilla 56149.  There is a named pipe scanned by
DirectoryScanner and DS seems to treat it like a directory.

The reporter of the bug confirmed File.isFile and File.isDirectory both
return false for the named pipe so this is something we can detect and
something DirectoryScanner doesn't expext.  isFile is expected to be the
opposite of isDirectory in a few places.

I think it would be easy to add guards to only treat files as files and
dirs as dirs, the question is what to do with File objects that are
neither.  Drop them?  Treat them as files?  Add another user-controlled
option?

They seem to be rare creatures and in the context of issue 56149 "just
drop them" would probably be the sanest choice.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message