I never thought it would happen to me, but I ran into my first bug in Java:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5003595
I\'m pretty much in th
I experienced the same problem and solved it with a call to file.getParentFile().list(). Essentially the same as your solution, but OS agnostic.
file.getParentFile().list()