diff --git a/docs/GamUpdates.md b/docs/GamUpdates.md index ff65bc37..44e97896 100644 --- a/docs/GamUpdates.md +++ b/docs/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](https://github.com/taers232c/GAMADV-XTD3/wiki/Downloads-Installs) for Windows or other options, including manual installation +### 6.80.03 + +Added option `stripcrsfromname` to `gam print driveactivity` that causes carriage returns, +linefeeds and nulls to be stripped from file names. + ### 6.80.02 Added option `addcsvdata ` to `gam print filecounts` that adds diff --git a/docs/How-to-Upgrade-from-Standard-GAM.md b/docs/How-to-Upgrade-from-Standard-GAM.md index f1e241c4..dbf87408 100644 --- a/docs/How-to-Upgrade-from-Standard-GAM.md +++ b/docs/How-to-Upgrade-from-Standard-GAM.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 -GAMADV-XTD3 6.80.02 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.80.03 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs Python 3.12.4 64-bit final MacOS Sonoma 14.5 x86_64 @@ -923,7 +923,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 -GAMADV-XTD3 6.80.02 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.80.03 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs Python 3.12.4 64-bit final Windows-10-10.0.17134 AMD64 diff --git a/docs/Users-Drive-Activity-Settings.md b/docs/Users-Drive-Activity-Settings.md index 42f881ff..4d00257e 100644 --- a/docs/Users-Drive-Activity-Settings.md +++ b/docs/Users-Drive-Activity-Settings.md @@ -70,7 +70,7 @@ Google has introduced Drive Activity API v2; it adds time and action filtering a Drive Activity API v1 has been deprecated. * https://developers.google.com/drive/activity/v2/migrating ``` -gam print|show driveactivity [v2] [todrive *] +gam print driveactivity [v2] [todrive *] [(fileid )|(folderid )| (drivefilename )|(drivefoldername )| (query )] @@ -79,7 +79,7 @@ gam print|show driveactivity [v2] [todrive * [action|actions [not] ] [consolidationstrategy legacy|none] [idmapfile |(gsheet ) [charset ] [columndelimiter ] [noescapechar ] [quotechar ]] - [formatjson [quotechar ]] + [stripcrsfromname] [formatjson [quotechar ]] ``` By default, Drive Activity API v2 is used; the `v2` option is ignored. @@ -128,6 +128,9 @@ must be present in the file; the column `name.fullName` will be used if present. If you don't use the `idmapfile` option, Gam makes an additional API call per user to get the name and email address. +The `stripcrsfromname` option strips nulls, carriage returns and linefeeds from drive file names. +Use this option if you discover filenames containing these special characters; it is not common. + By default, Gam displays the information as columns of fields; the following option causes the output to be in JSON format, * `formatjson` - Display the fields in JSON format. diff --git a/docs/Version-and-Help.md b/docs/Version-and-Help.md index e4697b56..b213415c 100644 --- a/docs/Version-and-Help.md +++ b/docs/Version-and-Help.md @@ -3,7 +3,7 @@ Print the current version of Gam with details ``` gam version -GAMADV-XTD3 6.80.02 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.80.03 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs Python 3.12.4 64-bit final MacOS Sonoma 14.5 x86_64 @@ -15,7 +15,7 @@ Time: 2023-06-02T21:10:00-07:00 Print the current version of Gam with details and time offset information ``` gam version timeoffset -GAMADV-XTD3 6.80.02 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.80.03 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs Python 3.12.4 64-bit final MacOS Sonoma 14.5 x86_64 @@ -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 -GAMADV-XTD3 6.80.02 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.80.03 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs Python 3.12.4 64-bit final MacOS Sonoma 14.5 x86_64 @@ -64,7 +64,7 @@ MacOS High Sierra 10.13.6 x86_64 Path: /Users/Admin/bin/gamadv-xtd3 Version Check: Current: 5.35.08 - Latest: 6.80.02 + Latest: 6.80.03 echo $? 1 ``` @@ -72,7 +72,7 @@ echo $? Print the current version number without details ``` gam version simple -6.80.02 +6.80.03 ``` In Linux/MacOS you can do: ``` @@ -82,7 +82,7 @@ echo $VER Print the current version of Gam and address of this Wiki ``` gam help -GAM 6.80.02 - https://github.com/taers232c/GAMADV-XTD3 +GAM 6.80.03 - https://github.com/taers232c/GAMADV-XTD3 Ross Scroggs Python 3.12.4 64-bit final MacOS Sonoma 14.5 x86_64 diff --git a/src/GamCommands.txt b/src/GamCommands.txt index 2e804a58..539b4adb 100644 --- a/src/GamCommands.txt +++ b/src/GamCommands.txt @@ -7142,7 +7142,7 @@ gam print diskusage [todrive ::= "(,)*" -gam print|show driveactivity [todrive *] +gam print driveactivity [todrive *] [(fileid ) | (folderid ) | (drivefilename ) | (drivefoldername ) | (query )] [([start|starttime |