text: public synchronized String[] listAll() throws IOException {final Set<String> files = new HashSet<>();for (String f : cacheDirectory.listAll()) {files.add(f);}for (String f : in.listAll()) {files.add(f);}String[] result = files.toArray(new String[files.size()]);Arrays.sort(result);return result;}