From 8470949e8284773767646e3ad72b3cdda27e82d3 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Mon, 9 Mar 2026 17:11:15 -0700 Subject: [PATCH] Updated drive storage formatting options --- wiki/GamUpdates.md | 6 ++++++ wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md | 4 ++-- wiki/Users-Drive-Files-Display.md | 16 ++++++++++------ wiki/Version-and-Help.md | 14 +++++++------- 4 files changed, 25 insertions(+), 15 deletions(-) diff --git a/wiki/GamUpdates.md b/wiki/GamUpdates.md index db94251c..9560da82 100644 --- a/wiki/GamUpdates.md +++ b/wiki/GamUpdates.md @@ -10,6 +10,12 @@ Add the `-s` option to the end of the above commands to suppress creating the `g See [Downloads-Installs-GAM7](https://github.com/GAM-team/GAM/wiki/Downloads-Installs) for Windows or other options, including manual installation +### 7.35.02 + +Added option `showsizeunits` to `gam gam print filelist|filecounts` as an alternative to option `showsize`. +* `showsize` - 31549200951 - This is a byte count +* `showsizeunits' - 31.55 GB - This is as shown in the Admin console + ### 7.35.01 The following commands have been updated to not verify the existence of `gam.cfg` credentials files diff --git a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md index 41a39732..77ee11ef 100644 --- a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md +++ b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md @@ -251,7 +251,7 @@ writes the credentials into the file oauth2.txt. ``` gamteam@server:/Users/gamteam$ rm -f /Users/gamteam/GAMConfig/oauth2.txt gamteam@server:/Users/gamteam$ gam version -GAM 7.35.01 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.35.02 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3.1 arm64 @@ -1034,7 +1034,7 @@ writes the credentials into the file oauth2.txt. ``` C:\>del C:\GAMConfig\oauth2.txt C:\>gam version -GAM 7.35.01 - https://github.com/GAM-team/GAM - pythonsource +GAM 7.35.02 - https://github.com/GAM-team/GAM - pythonsource GAM Team Python 3.14.3 64-bit final Windows 11 10.0.26200 AMD64 diff --git a/wiki/Users-Drive-Files-Display.md b/wiki/Users-Drive-Files-Display.md index 3edd2d7d..9f2c1b5b 100644 --- a/wiki/Users-Drive-Files-Display.md +++ b/wiki/Users-Drive-Files-Display.md @@ -405,7 +405,7 @@ quotaBytesUsed - The number of storage quota bytes used by the file. size - Size in bytes of blobs and first party editor files. ``` Previously, GAM used the `size` field when totaling file sizes, it now uses the `quotaBytesUsed` field. -The option `sizefield quotabytesused|size` allows you to select which field to use. +The option `sizefield quotabytesused|size` allows you to select which field to use; `quotabytesused` is the default. For most MIME types, the values are the same; for the following MIME types, `quotabytesused` is larger. ``` @@ -719,7 +719,7 @@ gam print filecounts [todrive *] [filenamematchpattern ] * [] [] [excludetrashed] - [showsize] [showmimetypesize] + [showsize|showsizeunits] [showmimetypesize] [showlastmodification] [pathdelimiter ] (addcsvdata )* [summary none|only|plus] [summaryuser ] @@ -735,7 +735,7 @@ gam show filecounts [filenamematchpattern ] * [] [] [excludetrashed] - [showsize] [showmimetypesize] + [showsize|showsizeunits] [showmimetypesize] [showlastmodification] [pathdelimiter ] [summary none|only|plus] [summaryuser ] ``` @@ -748,7 +748,9 @@ saying that the query is invalid when, in fact, it is but the user does not have When `continueoninvalidquery` is true, GAM prints an error message and proceeds to the next user rather that terminating as it does now. Of course, if the query really is invalid, you will get the message for every user. -The `showsize` option displays the total size (in bytes) of the files counted. +The `showsize` option displays the total size (in bytes) of the files counted; e.g., `31549200951`. + +The `showsizeunits` option displays the total size of the files counted with two decimal places and units; e.g., `31.55 GB`. The `showmimetypesize` option displays the total size (in bytes) of each MIME type counted. @@ -1100,7 +1102,7 @@ gam print|show filelist [todrive *] [excludetrashed] [maxfiles ] [nodataheaders ] [countsonly [summary none|only|plus] [summaryuser ] - [showsource] [showsize] [showmimetypesize]] + [showsource] [showsize|showsizeunits] [showmimetypesize]] [countsrowfilter] [filepath|fullpath [folderpathonly []] [pathdelimiter ] [addpathstojson] [showdepth]] [buildtree] [allfields|*|(fields )] @@ -1304,7 +1306,9 @@ The `summaryuser ` option replaces the default summary user `Summary` w The `countsonly` suboption `showsource` adds additional columns `Source` and `Name` that identify the top level folder ID and Name from which the counts are derived. -The `countsonly` suboption `showsize` adds an additional column `Size` that indicates the total size (in bytes) of the files represented on the row. +The `countsonly` suboption `showsize` adds an additional column `Size` that indicates the total size (in bytes) of the files represented on the row; e.g., `31549200951`. + +The `countsonly` suboption `showsizeunits` adds an additional column `Size` that indicates the total size of the files represented on the row with two decimal places and units; e.g., `31.55 GB`. The `countsonly` suboption `showmimetypesize` adds additional columns `:Size` that indicate the total size (in bytes) of each MIME type. diff --git a/wiki/Version-and-Help.md b/wiki/Version-and-Help.md index da792057..8a598d76 100644 --- a/wiki/Version-and-Help.md +++ b/wiki/Version-and-Help.md @@ -1,9 +1,9 @@ -\# Version and Help +# Version and Help Print the current version of Gam with details ``` gam version -GAM 7.35.01 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.35.02 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3.1 arm64 @@ -15,7 +15,7 @@ Time: 2026-02-15T07:51:00-08:00 Print the current version of Gam with details and time offset information ``` gam version timeoffset -GAM 7.35.01 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.35.02 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3.1 arm64 @@ -27,7 +27,7 @@ Your system time differs from www.googleapis.com by less than 1 second Print the current version of Gam with extended details and SSL information ``` gam version extended -GAM 7.35.01 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.35.02 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3.1 arm64 @@ -68,7 +68,7 @@ MacOS High Sierra 10.13.6 x86_64 Path: /Users/gamteam/bin/gam7 Version Check: Current: 5.35.08 - Latest: 7.35.01 + Latest: 7.35.02 echo $? 1 ``` @@ -76,7 +76,7 @@ echo $? Print the current version number without details ``` gam version simple -7.35.01 +7.35.02 ``` In Linux/MacOS you can do: ``` @@ -86,7 +86,7 @@ echo $VER Print the current version of Gam and address of this Wiki ``` gam help -GAM 7.35.01 - https://github.com/GAM-team/GAM +GAM 7.35.02 - https://github.com/GAM-team/GAM GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3.1 arm64