From 80fc40a9c757ae95aeb226a6eafaef2b4e0e6a39 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Thu, 14 Dec 2023 10:06:46 -0800 Subject: [PATCH] Updated functionality of option `preservefiletimes` in `gam update drivefile `. --- docs/Chrome-Policies.md | 4 ++-- docs/GamUpdates.md | 11 +++++++++++ docs/How-to-Upgrade-from-Standard-GAM.md | 4 ++-- docs/Users-Drive-Files-Manage.md | 3 ++- docs/Users-Gmail-Send-As-Signature-Vacation.md | 5 +++++ docs/Version-and-Help.md | 12 ++++++------ src/GamUpdate.txt | 11 +++++++++++ src/gam/__init__.py | 9 +++++++-- 8 files changed, 46 insertions(+), 13 deletions(-) diff --git a/docs/Chrome-Policies.md b/docs/Chrome-Policies.md index 038ed281..7e6bf6f2 100644 --- a/docs/Chrome-Policies.md +++ b/docs/Chrome-Policies.md @@ -322,12 +322,12 @@ Version `6.21.02` is required. Display direct policies, update all ``` gam redirect csv ChromePolicies.csv print chromepolicies ou "/Path/To/OU1" show direct formatjson quotechar "'" -gam csv ChromePolicies.csv quotechar "'" gam update chromepolicy "~name" json "~JSON" +gam csv ChromePolicies.csv quotechar "'" gam update chromepolicy "~name" json "~JSON" ou "/Path/To/OU2" ``` Display all policies, select direct on update ``` gam redirect csv ChromePolicies.csv print chromepolicies ou "/Path/To/OU1" formatjson quotechar "'" -gam config csv_input_row_filter "direct:boolean:true" csv ChromePolicies.csv quotechar "'" gam update chromepolicy "~name" json "~JSON" +gam config csv_input_row_filter "direct:boolean:true" csv ChromePolicies.csv quotechar "'" gam update chromepolicy "~name" json "~JSON" ou "/Path/To/OU2" ``` ## Create Chrome network diff --git a/docs/GamUpdates.md b/docs/GamUpdates.md index 4abd8e0f..bcaa9628 100644 --- a/docs/GamUpdates.md +++ b/docs/GamUpdates.md @@ -10,6 +10,17 @@ Add the `-s` option to the end of the above commands to suppress creating the `g See [Downloads](https://github.com/taers232c/GAMADV-XTD3/wiki/Downloads) for Windows or other options, including manual installation +### 6.66.13 + +Updated functionality of option `preservefiletimes` in `gam update drivefile `. + +* Current + * `preservefiletimes localfile ` - `modifiedTime` of `` is set to that of `localfile ` + * `preservefiletimes` - No effect +* Updated + * `preservefiletimes localfile ` - `modifiedTime` of `` is set to that of `localfile ` + * `preservefiletimes` - `modifiedTime` of `` retains its current value + ### 6.66.12 Upgraded to Python 3.12.1 where possible. diff --git a/docs/How-to-Upgrade-from-Standard-GAM.md b/docs/How-to-Upgrade-from-Standard-GAM.md index 6313ee9c..b2524157 100644 --- a/docs/How-to-Upgrade-from-Standard-GAM.md +++ b/docs/How-to-Upgrade-from-Standard-GAM.md @@ -334,7 +334,7 @@ writes the credentials into the file oauth2.txt. admin@server:/Users/admin/bin/gamadv-xtd3$ rm -f /Users/admin/GAMConfig/oauth2.txt admin@server:/Users/admin/bin/gamadv-xtd3$ ./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.66.12 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.66.13 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs Python 3.10.8 64-bit final MacOS High Sierra 10.13.6 x86_64 @@ -1002,7 +1002,7 @@ writes the credentials into the file oauth2.txt. C:\GAMADV-XTD3>del C:\GAMConfig\oauth2.txt C:\GAMADV-XTD3>gam version WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found -GAMADV-XTD3 6.66.12 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.66.13 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs Python 3.12.0 64-bit final Windows-10-10.0.17134 AMD64 diff --git a/docs/Users-Drive-Files-Manage.md b/docs/Users-Drive-Files-Manage.md index dab4b92d..47e04669 100644 --- a/docs/Users-Drive-Files-Manage.md +++ b/docs/Users-Drive-Files-Manage.md @@ -493,7 +493,8 @@ From the Google Drive API documentation. By default, Google assigns the current time to the attribute `modifiedTime`; you can assign your own value with `modifiedtime