It will then loop thru the array and pull each directory name out and get its size. It will first retreive a list of all top level folders from your Google Drive, and then breaks the returned string into an array. It assumes you have rclone installed and included in your windows environment path. You can run the script from command line or powershell using php filename.php You need to make sure shell_exec() command is not disabled in php.ini. Note that the following script is written in PHP on Windows. WINDOWS PHP SCRIPT TO FIND ALL TOP LEVEL FOLDER SIZES: Thanks to the following post for helping figure this out: To get the total size (space used) of one particular folder, use this: rclone size "myGoogleDrive:myFolderName/" To get the total space used by your entire Google Drive use this: rclone size "myGoogleDrive:/"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |