This will provide you an url to obtain an authorization code, which you will need to provide in a box. Step 2: Mount drive by running this code in a cell: from lab import drive Step 1: Visit Google Colab and create a new python 3 notebook. One approach to this is using Google Colab. (You could use "M\t" for folders with a megabyte size.) These largest folders are stored in "GB.txt". That isolates the folders which are at least 1GB large. Then, "G\t" is the string which is searched for (a capital G, followed by a tab), and that line is printed. Note that the -h option (as opposed to -sh) displays sub-folders. ! du -h /content/drive/My\ Drive/* > all.txtĪll the folder sizes will be saved in "all.txt". You will need to authenticate the Google Drive File Stream to access your Google account, and copy the authentication token into the Colab notebook. In Google Colab, create a new notebook, click on the "Files" icon in the left sidebar, and "Mount Drive". I provide improved code below, which can display only the largest folders. This answer was inspired by Aditya, so please upvote his answer there. UPD: the script was updated so that if it runs too long and is stopped, just run it once more and it will resume from where it left, using data stored in "Getting Folder Sizes. tName("Getting Folder Sizes, " + report.length + " processed.") Or you can just copy and paste the code into Google Script editor and run "doGet()" function from there: function doGet()) Other is the report which lists all folders and sizes. It will create two files in the root of your Drive, one displays progress and is deleted after script is completed. (if it gets stopped, just run it once again, and it will continue from where it left) UPD2: if you have a lot of files it will reach the execution time limit and stop you will need to run it multiple times (you can also set up automatic timed trigger for this) And verification requires some extra effort, so I didn't do it yet. Leave a comment and share how many Gigs you were able to free up with Disk Inventory X.UPD: as Google started to block unverified scripts, the only way to use it is copy-paste the source to your script editor. Tips: As a side note, if you are working to get your girls interested in technology introduce them to iJustine…she will have them amped on technology in no time! □ If you don’t have tech support that re-images your classroom computers, go ahead and run Disk Inventory X on them too. Clean your computers up for a fresh start in August. Take a little time to free up your computer before the end of the school year. How to integrate Disk Inventory X into the classroom: The cost of this awesome little goody? Absolutely free! Disk Inventory X gives detailed search results and you can delete files directly using the program…it updates live so you can see your disk space free up right before your eyes. Disk Inventory X helps solve the mystery of where all of your disk space has gone. Disk Inventory X is a disk usage utility for Mac OS X (sorry PC users, I am sure something similar exists) It shows the sizes of files and folders in “treemaps” (a graphical representation). This week I learned about an awesome tool to help me speed things up from iJustine over at Tasty Blog Snack. Normally I spend days sorting through all of the folders trying to find the culprits of my slow down and save them to disk or trash them all together. I have downloaded hundreds of open source applications to try, pictures, fonts, and videos to my machine and I have created HUGE files of tutorials, videos, and lessons for my students. I always know when summer is approaching because my machine starts to run slower. I don’t know about you but things are also slowing down on the computer front toward the end of the school year too. What it is: Summer is approaching and things are winding down on the school front.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |