diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index 4b69dd0d..e2b41ed7 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -1,3 +1,8 @@ +7.06.03 + +Fixed bug in `gam print|show drivelastmodification` that caused a trap +when an empty drive was specified. + 7.06.02 Updated `gam print|show filecounts ... showlastmodification` to include diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 1f8440a7..500393cc 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.06.02' +__version__ = '7.06.03' __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' #pylint: disable=wrong-import-position @@ -56489,7 +56489,7 @@ def printFileParentTree(users): # Last file modification utilities def _initLastModification(): return {'lastModifiedFileId': '', 'lastModifiedFileName': '', - 'lastModifiedFileMimeType': '', 'lastModifiedFilaPath': '', + 'lastModifiedFileMimeType': '', 'lastModifiedFilePath': '', 'lastModifyingUser': '', 'lastModifiedTime': NEVER_TIME, 'fileEntryInfo': {}} @@ -56504,9 +56504,10 @@ def _checkUpdateLastModifiction(f_file, userLastModification): userLastModification['fileEntryInfo'] = f_file.copy() def _getLastModificationPath(drive, userLastModification, pathDelimiter): - filePathInfo = initFilePathInfo(pathDelimiter) - _, paths, _ = getFilePaths(drive, {}, userLastModification['fileEntryInfo'], filePathInfo) - userLastModification['lastModifiedFilePath'] = paths[0] if paths else UNKNOWN + if userLastModification['fileEntryInfo']: + filePathInfo = initFilePathInfo(pathDelimiter) + _, paths, _ = getFilePaths(drive, {}, userLastModification['fileEntryInfo'], filePathInfo) + userLastModification['lastModifiedFilePath'] = paths[0] if paths else UNKNOWN def _showLastModification(lastModification): printKeyValueList(['lastModifiedFileId', lastModification['lastModifiedFileId']]) diff --git a/wiki/GamUpdates.md b/wiki/GamUpdates.md index b2fbda30..7da98cf8 100644 --- a/wiki/GamUpdates.md +++ b/wiki/GamUpdates.md @@ -10,6 +10,11 @@ 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.06.03 + +Fixed bug in `gam print|show drivelastmodification` that caused a trap +when an empty drive was specified. + ### 7.06.02 Updated `gam print|show filecounts ... showlastmodification` to include diff --git a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md index 64921103..ad2dc638 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. admin@server:/Users/admin$ rm -f /Users/admin/GAMConfig/oauth2.txt admin@server:/Users/admin$ gam version WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found -GAM 7.06.02 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.06.03 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.3 64-bit final MacOS Sequoia 15.4 x86_64 @@ -989,7 +989,7 @@ writes the credentials into the file oauth2.txt. C:\>del C:\GAMConfig\oauth2.txt C:\>gam version WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found -GAM 7.06.02 - https://github.com/GAM-team/GAM - pythonsource +GAM 7.06.03 - https://github.com/GAM-team/GAM - pythonsource GAM Team Python 3.13.3 64-bit final Windows-10-10.0.17134 AMD64 diff --git a/wiki/Version-and-Help.md b/wiki/Version-and-Help.md index fdadd3b5..00142fee 100644 --- a/wiki/Version-and-Help.md +++ b/wiki/Version-and-Help.md @@ -4,7 +4,7 @@ k Print the current version of Gam with details ``` gam version -GAM 7.06.02 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.06.03 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.3 64-bit final MacOS Sequoia 15.4 x86_64 @@ -16,7 +16,7 @@ Time: 2023-06-02T21:10:00-07:00 Print the current version of Gam with details and time offset information ``` gam version timeoffset -GAM 7.06.02 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.06.03 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.3 64-bit final MacOS Sequoia 15.4 x86_64 @@ -28,7 +28,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.06.02 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.06.03 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.3 64-bit final MacOS Sequoia 15.4 x86_64 @@ -65,7 +65,7 @@ MacOS High Sierra 10.13.6 x86_64 Path: /Users/Admin/bin/gam7 Version Check: Current: 5.35.08 - Latest: 7.06.02 + Latest: 7.06.03 echo $? 1 ``` @@ -73,7 +73,7 @@ echo $? Print the current version number without details ``` gam version simple -7.06.02 +7.06.03 ``` In Linux/MacOS you can do: ``` @@ -83,7 +83,7 @@ echo $VER Print the current version of Gam and address of this Wiki ``` gam help -GAM 7.06.02 - https://github.com/GAM-team/GAM +GAM 7.06.03 - https://github.com/GAM-team/GAM GAM Team Python 3.13.3 64-bit final MacOS Sequoia 15.4 x86_64