Path picturePath = Paths.get("C:/Benutzer/Theo/Eiegene Bilder");
try
{
for (Path pictureFile : DirectoryScanner.scan(picturePath))
{
Picture picture = new Picture(pictureFile, pictureFile.getFileName().toString());
result.add(picture);
}
} catch (IOException e)
{
LOG.error("Scanning of Pictures Directory failed", e);