From 6da2b141119b7470ec6786d31705cbe851e57af2 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Fri, 11 Apr 2025 12:29:55 -0700 Subject: [PATCH] Added simple commands to get information about the last modified file on a drive. --- src/GamCommands.txt | 14 +- src/GamUpdate.txt | 19 +++ src/gam/__init__.py | 191 +++++++++++++++++++--- src/gam/gamlib/glclargs.py | 2 + wiki/GamUpdates.md | 17 ++ wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md | 4 +- wiki/Users-Drive-Files-Display.md | 30 +++- wiki/Version-and-Help.md | 12 +- 8 files changed, 250 insertions(+), 39 deletions(-) diff --git a/src/GamCommands.txt b/src/GamCommands.txt index 12445917..69e1184f 100644 --- a/src/GamCommands.txt +++ b/src/GamCommands.txt @@ -7163,7 +7163,8 @@ gam print filecounts [todrive *] [filenamematchpattern ] * [] [] [excludetrashed] - [showsize] [showmimetypesize] [showlastmodification] + [showsize] [showmimetypesize] + [showlastmodification] [pathdelimiter ] (addcsvdata )* [summary none|only|plus] [summaryuser ] gam show filecounts @@ -7178,7 +7179,8 @@ gam show filecounts [filenamematchpattern ] * [] [] [excludetrashed] - [showsize] [showmimetypesize] [showlastmodification] + [showsize] [showmimetypesize] + [showlastmodification] [pathdelimiter ] [summary none|only|plus] [summaryuser ] gam print filesharecounts [todrive *] @@ -7308,6 +7310,14 @@ gam print driveactivity [todrive *] usageindrivetrash ::= "(,)*" +gam print drivelastmodification [todrive *] + [select ] + [pathdelimiter ] + (addcsvdata )* +gam show drivelastmodification + [select ] + [pathdelimiter ] + gam print drivesettings [todrive *] [allfields|*|(fields )] [delimiter ] [showusagebytes] diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index 16b628f2..4b69dd0d 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -1,8 +1,27 @@ +7.06.02 + +Updated `gam print|show filecounts ... showlastmodification` to include +file mimetype and path information for the last modified file. + +Added simple commands to get information about the last modified file on a drive. +By default, a user's My Drive is processed; optionally, a Shared Drive can be processed. +``` +gam print drivelastmodification [todrive *] + [select ] + [pathdelimiter ] + (addcsvdata )* +gam show drivelastmodification + [select ] + [pathdelimiter ] +``` + 7.06.01 Updated `gam create|update drivefileacl ... expiration