ListEntries.java: check if file exists to avoid error