sonatype/nexus — pull request #791 by cstamas (2013-03-27 09:37:16+00:00)
Title: PENDING 2.4.1: File listing should fail in case of IOError.

Related: NEXUS-5612

Currently DefaultFSPeer was hiding the null returned
from File.listFiles. According to javadocs, it returns null
in two cases, a) when the File instance does not denote
a directory, or b) in case of IO error.

As case a) is checked few lines above (if check failed,
we would not get here), the null return value should
be treated as IO Error.

By throwing a generic LocalStorageExcetion, we
make this case to be treated as error.