how to find th size of directory in java code example Example: directory size java FileUtils.sizeOfDirectory(File file); //apache commons-io