src/de/uhilger/mediaz/store/FileStorage.java
@@ -168,7 +168,7 @@ } return list; } @Override public TypeToken typeFromName(String name) { return types.get(name); @@ -199,5 +199,23 @@ return false; } } @Override public List<Entity> listObjects(String typ) { File base = new File(fileBase); File dir = new File(base, typ); List<Entity> list = new ArrayList(); File[] files = dir.listFiles(); if(files != null) { for(File file : files) { try { list.add(entityFromFile(file)); } catch (ClassNotFoundException | IOException ex) { logger.log(Level.SEVERE, null, ex); } } } return list; } }