92

In Google Drive, you can use Sort split-button and choose Quota Used to show the size of each file there.

However, folder sizes are not shown.

I guess it's really a basic requirement in order to manage folders in Google Drive. I have a folder full of subfolders and files, and I can't go summing up the size of each file recursively.

I need to decide whether deleting this folder or not. But I need to know it's size beforehand.

Is there any way to see how much volume a folder has taken?

  • I'm not sure why the mod disallowed me from answering this question as I have the required rep, but I'll provide a comment: It's not an exact answer as it's not folder sizes, but will help you find large files. If you hover over the quota in the lower left of the screen on the web app, it will show your quota and a small blue "i" icon. Click that and it will reverse sort all your files by largest to smallest. Hope this helps somewhat, and it's annoying that Google doesn't provide a real folder size. – Chuck Claunch Sep 29 '15 at 14:58
  • 2
    @ChuckClaunch You have the assocation bonus. For protected questions, the 10 reputation must have been earned in site. That's why you were unable to answer this protected question. – Revetahw Dec 10 '16 at 19:34
  • 1
    To answer Chuck's question, do enough in one forum to earn (IIRC) 100 points, and you will automatically have the first 100 points in every forum you join. That way you can answer questions. Once I figured that out, I was no longer afraid to check out other forums. – CigarDoug Sep 25 '17 at 2:26
  • 1
    The Google Drive File Stream app will tell you the size of a google drive / team drive folder. You don't even need to sync the folder. On Mac just "Get Info" on the folder and it will load the complete size of the folder – moof2k Dec 22 '18 at 0:12
  • If that Google Drive has been mirrored to your disk you can use tools such as wiztree, windirstat... to quickly view the size of all folders and subfolders. – skan May 14 at 17:53
16

Not exactly by folder, but great to find where are the big files, thanks to this pretty hat tip: Sort your Google Drive Files by Size to Find the Biggest Files.

On GDrive left panel, hover Upgrade storage:

where to click

Now click that i at the right of Drive, and there we have it:

showing biggest files This is the direct link for that: https://drive.google.com/drive/quota

  • 15
    it shows only files not folder – shareef Sep 14 '16 at 10:30
  • 3
    Well, I start the answer with: Not exactly by folder, not sure if that's too vague or not understandable – brasofilo May 6 '17 at 5:16
  • 1
    still i voteup your answer thanks – shareef May 6 '17 at 16:45
10

UPD: see below

I wrote a simple script for this. You can run it from here: https://script.google.com/macros/s/AKfycbyUvNoXzBMBDE9pnHkLUltliGwjip5x09t3PeTY_1KoXO45F6iz/exec

(if it gets stopped, just run it once again, and it will continue from where it left)

It will create two files in the root of your Drive, one displays progress and is deleted after script is completed. Other is the report which lists all folders and sizes. It looks like this.Google Drive folder sizes report

Or you can just copy and paste the code into Google Script editor and run "doGet()" function from there:

function doGet(){
CreateReportFile();
return ContentService.createTextOutput("Report file created in your Drive's root folder");
}

function CreateReportFile() {
  var reportContent = CreateReport();
  DriveApp.createFile('Folder Sizes Report.txt', reportContent);
}

function CreateReport(){
  var reportContent = "";
  var progressFileFound = DriveApp.getRootFolder().searchFiles("title contains 'Getting Folder Sizes,'");
  var progressFile;
  var report=[];
  if(progressFileFound.hasNext()) {
      progressFile = progressFileFound.next();
      var json = progressFile.getBlob().getDataAsString();
      try{
        report = JSON.parse(json);
      } catch(Exception) {
         DriveApp.removeFile(progressFile);
         progressFile = DriveApp.createFile("Getting Folder Sizes, 0 processed...", " ");
      }
    }
  else {
      progressFile = DriveApp.createFile("Getting Folder Sizes, 0 processed...", " ");
    }
  var f = DriveApp.getRootFolder();
  AddFolderToReport(report, f, "/", progressFile);
  DriveApp.removeFile(progressFile);
  reportContent += "TotalSize MB   FilesSize MB   Path \r\n";
  for(var i=0; i<report.length; i++)
    reportContent += Utilities.formatString("%12.2f ", (report[i].totalSize / (1024*1024))) + Utilities.formatString("%11.2f      ",(report[i].filesSize / (1024*1024))) + report[i].folderPath + "\r\n";
  return reportContent;
}

function AddFolderToReport(report, currentFolder, currentPath, progressFile){
  var report1 = [];
  for(var i=0; i<report.length; i++)
    if(report[i].folderPath == currentPath)
       return report[i].totalSize;

  var fChildren = currentFolder.getFolders();
  var totalSize = 0;
  while(fChildren.hasNext() && currentPath.length < 2000){
    var nextF = fChildren.next();
    totalSize += AddFolderToReport(report, nextF, currentPath + nextF.getName() + "/", progressFile);
  }
  var filesSize = 0;
  var files = currentFolder.getFiles();
  while(files.hasNext()){
    filesSize += files.next().getSize();
  }
  totalSize += filesSize;
  report.push({folderPath: currentPath, filesSize: filesSize, totalSize: totalSize});
  progressFile.setName("Getting Folder Sizes, " + report.length + " processed...");
  progressFile.setContent(JSON.stringify(report));
  return totalSize;
}

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 ..." file.

  • 1
    Great script but I have been unable to authorize it either through the link or running straight from scripts.google.com. After agreeing on the permissions, I loop back to the login for authorization. – user5389726598465 Jan 27 at 11:01
  • 1
    Not sure why, I've tried on friend's account and it is working. Looks like generic problem with your account, or maybe it's just browser cache? Try using anonymous window (Ctrl+Shift+N) – alexkovelsky Jan 28 at 14:16
  • 4
    @jj. I have updated the script so it can now resume from where it stopped. Just run it few times. – alexkovelsky Feb 1 at 23:30
  • 3
    Great work on the script! I couldn't get the link to work but was able to copy and paste the code into Google App Scripts and run it. I had to restart it a few times because of Google's timeout restriction but it finally worked in the end. Thank you! – frakman1 Mar 11 at 17:30
  • 1
    @ahorn Yes, the script looks for every file and folder under "/" path, which is "My Drive". You can see size of any subfolder under "/", but what is the path for your "computer" - I don't know. You can try to modify this line: var f = DriveApp.getRootFolder(); which tells where to start. – alexkovelsky May 3 at 18:06
7

Unfortunately, the answer is no.

See this discussion: http://productforums.google.com/forum/#!topic/drive/TVtw1_QA6fA

2

If you have Google Drive installed on your PC or MAC, use Windows Explorer (PC) or Finder (MAC) to easily check the folder sizes. I could not find a way to do it from a web browser.

  • 1
    The folders that I've selected for Google drive on my PC amount to >6 GB. However google drive website says they are only 3.7 GB (fully synched). Would be nice to check folder sizes/no files within etc as I'm not convinced all my files are synched! – user56353 Jan 5 '14 at 11:51
  • 1
    @user56353 PCs will sometimes report the disk space used. Disk space is allocated in whole blocks, like 4k in size, and if a file is only 1k, it still uses 4k on disk. Thousands of small files could use up lots of wasted space. Google Drive might report only actual file size. Also Google Drive may compress photos & videos, or de-duplicate files between users if they are the same file. Check actual file size vs. size on disk. Windows 8.1 reports both in File Properties (ALT+ENTER). – Chloe Sep 29 '17 at 17:20
  • In our case, we're using Drive File Stream, and wanted to check the size of the folder prior to synchronizing it to the local machine. – Dustin Graham Mar 11 at 18:06
  • 1
    @mm32993 This answer isn't useful, because in my situation I want to check the amount of storage a large folder (up to 80GB) is taking up without synchronising it. – ahorn Apr 30 at 4:37
  • 1
    @ahorn I think you missed the context. Drive File Stream does not download items, thus we can not see the full size of the folder. We would like to synchronize everything from a specific folder in order to prepare to work offline, but we're unable to see the size of the folder prior to doing so. :) – Dustin Graham Apr 30 at 18:00
1

Since there are no (currently working) answers here, I will post an answer that is slighly inconvenient, but at least it works, as long as the folder is less than 15 GB (the free storage amount offered by Google Drive).

Create a new Google account, (this is not a very long process, thankfully) and share the folder with that account. On the new account, copy the shared folder so that it is also on that account. Your new Google account will tell you how much storage you have used. That is the size of the folder. After getting that information, you can delete the whole folder. This whole proccess can be done in a few minutes.

  • 1
    we need all folderss sizess – saber tabatabaee yazdi Dec 4 '18 at 6:06
  • One would need to copy the contents in order to own the files, but that is infeasible if there are multiple folders inside the parent folder in question. – ahorn Apr 30 at 4:30
  • @ahorn You can copy a folder with subdirectories in Drive. – Revetahw Apr 30 at 4:32
  • @Revetahw how does one do that? When I right-click a folder, there is no option to "Make a copy" as with files. – ahorn Apr 30 at 15:14
  • 2
    @ahorn Wow, you're right – Revetahw May 1 at 3:24
-3

I have google-drive locally installed on my PC. With the tool JDiskReport (free, great tool!) you can easily see the usage in the tree of folders and subfolders.

-3

I wanted to comment on brasofilo's answer but I yet don't have its privilege.

To check all the files by size, you just go to

https://drive.google.com/drive/quota

in no need of such operations.

  • 7
    This only shows file sizes, not folder sizes, as the question requests. – Tim Parenti Jan 6 '17 at 18:18

protected by Community Jul 14 '15 at 6:47

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.