From c60ef582be35467adf9e620aae8902912cba0d2a Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Fri, 22 May 2026 09:29:52 -0700 Subject: [PATCH] Fixed bug in `gam print filelist` that caused a trap. --- src/GamUpdate.txt | 4 ++++ src/gam/__init__.py | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index def9d061..db09aa8f 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -1,3 +1,7 @@ +7.43.09 + +Fixed bug in `gam print filelist` that caused a trap. + 7.43.08 Fixed bug and formatting issues in `gam info device `. diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 4e323299..265f0b6e 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki """ __author__ = 'GAM Team ' -__version__ = '7.43.08' +__version__ = '7.43.09' __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' # pylint: disable=wrong-import-position @@ -29173,7 +29173,7 @@ def doInfoChatMessage(): # [formatjson [quotechar ]] def printShowChatMessages(users): cd = buildGAPIObject(API.DIRECTORY) - csvPF = CSVPrintFile(['User', 'space.name', 'space.displayName', 'name'] if not isinstance(users, list) else ['space.name', 'space.displayName', 'name']) if Act.csvFormat() else None + csvPF = CSVPrintFile(['User', 'space.name', 'space.displayName', 'name']) if Act.csvFormat() else None FJQC = FormatJSONQuoteChar(csvPF) fieldsList = [] pfilter = None @@ -29301,7 +29301,7 @@ def doInfoChatEvent(): # filter # [formatjson [quotechar ]] def printShowChatEvents(users): - csvPF = CSVPrintFile(['User', 'space.name', 'space.displayName', 'name'] if not isinstance(users, list) else ['space.name', 'space.displayName', 'name']) if Act.csvFormat() else None + csvPF = CSVPrintFile(['User', 'space.name', 'space.displayName', 'name']) if Act.csvFormat() else None FJQC = FormatJSONQuoteChar(csvPF) pfilter = None parentList = [] @@ -59705,7 +59705,7 @@ def printFileList(users): (DLP.onlySharedDrives and not driveId)): return if getCheckFilePermissions: - if not incrementalPrint: + if buildTree and not incrementalPrint: getSharedDriveACLsCount += 1 if getSharedDriveACLsCount % 100 == 0: writeStderr(f'{Msg.GOT} {getSharedDriveACLsCount} {Ent.Plural(Ent.DRIVE_FILE_OR_FOLDER_ACL)} {Msg.FOR} {gettingEntity}\n')