From ad3d4e9a57a29e9a316564d0c10e4567ef25cb3a Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Tue, 10 Mar 2026 09:30:50 -0700 Subject: [PATCH] Handle showsize/showsizeunits independently --- wiki/GamUpdates.md | 8 ++++++++ wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md | 4 ++-- wiki/Users-Drive-Files-Display.md | 10 ++++++---- wiki/Version-and-Help.md | 12 ++++++------ 4 files changed, 22 insertions(+), 12 deletions(-) diff --git a/wiki/GamUpdates.md b/wiki/GamUpdates.md index 052d0d4b..65b6c32c 100644 --- a/wiki/GamUpdates.md +++ b/wiki/GamUpdates.md @@ -10,6 +10,14 @@ 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.03 + +Updated `gam print filelist|filecounts` to handle options `showsize` and `showsizeunits` as independent options. +* `showsize` - Display a column `Size` with a byte count +* `showsizeunits` - Display a column `SizeUnits` with a formatted size with units + +If you select both options, you can sort multiple rows using the `Size` column. + ### 7.35.02 Added option `showsizeunits` to `gam gam print filelist|filecounts` as an alternative to option `showsize`. diff --git a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md index 77ee11ef..4f55f24c 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.02 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.35.03 - 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.02 - https://github.com/GAM-team/GAM - pythonsource +GAM 7.35.03 - 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 9f2c1b5b..8e6176e4 100644 --- a/wiki/Users-Drive-Files-Display.md +++ b/wiki/Users-Drive-Files-Display.md @@ -719,7 +719,7 @@ gam print filecounts [todrive *] [filenamematchpattern ] * [] [] [excludetrashed] - [showsize|showsizeunits] [showmimetypesize] + [showsize] [showsizeunits] [showmimetypesize] [showlastmodification] [pathdelimiter ] (addcsvdata )* [summary none|only|plus] [summaryuser ] @@ -735,7 +735,7 @@ gam show filecounts [filenamematchpattern ] * [] [] [excludetrashed] - [showsize|showsizeunits] [showmimetypesize] + [showsize] [showsizeunits] [showmimetypesize] [showlastmodification] [pathdelimiter ] [summary none|only|plus] [summaryuser ] ``` @@ -749,8 +749,10 @@ When `continueoninvalidquery` is true, GAM prints an error message and proceeds 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; e.g., `31549200951`. +With `print filecounts`, this will be in a column labelled `Size`. The `showsizeunits` option displays the total size of the files counted with two decimal places and units; e.g., `31.55 GB`. +With `print filecounts`, this will be in a column labelled `SizeUnits`. The `showmimetypesize` option displays the total size (in bytes) of each MIME type counted. @@ -1102,7 +1104,7 @@ gam print|show filelist [todrive *] [excludetrashed] [maxfiles ] [nodataheaders ] [countsonly [summary none|only|plus] [summaryuser ] - [showsource] [showsize|showsizeunits] [showmimetypesize]] + [showsource] [showsize] [showsizeunits] [showmimetypesize]] [countsrowfilter] [filepath|fullpath [folderpathonly []] [pathdelimiter ] [addpathstojson] [showdepth]] [buildtree] [allfields|*|(fields )] @@ -1308,7 +1310,7 @@ The `countsonly` suboption `showsource` adds additional columns `Source` and `Na 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 `showsizeunits` adds an additional column `SizeUnits` 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 8a598d76..57168e39 100644 --- a/wiki/Version-and-Help.md +++ b/wiki/Version-and-Help.md @@ -3,7 +3,7 @@ Print the current version of Gam with details ``` gam version -GAM 7.35.02 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.35.03 - 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.02 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.35.03 - 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.02 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.35.03 - 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.02 + Latest: 7.35.03 echo $? 1 ``` @@ -76,7 +76,7 @@ echo $? Print the current version number without details ``` gam version simple -7.35.02 +7.35.03 ``` 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.02 - https://github.com/GAM-team/GAM +GAM 7.35.03 - https://github.com/GAM-team/GAM GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3.1 arm64