This Node.js script calculates the total capacity of a directory, including its subdirectories and files. It can be used to quickly estimate the space occupied by a directory on your file system.
-
Clone or download this repository to your local machine.
-
Install Node.js if you haven't already: Node.js
-
Open a terminal or command prompt and navigate to the folder containing the script.
-
Run the script by providing the path to the directory you want to analyze:
node index.js /path/to/folders