Do you know how can I get the folder size in Java?
The length() method in the File class only works for files, using that method I always get a size of 0.
Use apache-commons-io, there's a FileUtils class with a sizeOfDirectory methods
FileUtils
sizeOfDirectory