I've been writing code that uses java.io.File, for the first time in ages. It's been like meeting up with an old friend and being reminded just how ugly he really is.
file.list(), which goes to the filesystem to find the names of files does not throw an
IOException. On the other hand
file.getCanonicalPath(), which 'just' returns a file name does throw an an
Why the inconsistency, I wonder?