Preview:
//Exemple de chemin sourceFolder: ./src/test/resources/TE/source        

try (var files = Files.list(Path.of(sourceFolder))) {
            files.forEach(f -> treatFile(f.toFile()));
        } catch (IOException e) {
            log.error("Impossible de traiter les fichiers du repertoire " + sourceFolder, e);
        }
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter