Generating Directory/Path Tree
In one of my previous stories, I have shared a simple Python script, which used to list all the used libraries in the .py extended, in other words, Python files, and returned the result in a requirements.txt file.
This time, even though the general principle is the same, whole project is going to be a little bit harder compared to the Python, the first reason being that we are already working Java, not Python, but the most important part is that we are going to use the recursive functions.
The result at the end is going to get all the directory, subdirectories, files, and file (not folder) sizes in bytes as shown in the image below:
Source Code⌗
https://github.com/woosal1337/Listing-Subdirectories-Files-Sizes
Read other posts