What do you want to see in Flocon?
add an option to enable folder size to be computed on mobile (can be expensive work)
public class FolderSize {
public static long getFolderSize(Path folder) throws IOException {
try (Stream<Path> walk = Files.walk(folder)) {
return walk
.filter(Files::isRegularFile)
.mapToLong(p -> {
try {
return Files.size(p);
} catch (IOException e) {
return 0L;
}
})
.sum();
}
}
public static void main(String[] args) throws IOException {
Path path = Paths.get("/chemin/vers/dossier");
long size = getFolderSize(path);
System.out.println("Taille du dossier : " + size + " octets");
}
}
What do you want to see in Flocon?
add an option to enable folder size to be computed on mobile (can be expensive work)