From 428f8f5987ec0af43cb738667d5a735f9fac5407 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Fri, 20 Feb 2026 13:54:34 -0800 Subject: [PATCH] Added option `copyfolderpermissions []` to `gam copy|move drivefile` --- wiki/GamUpdates.md | 20 ++++++++++++++++++++ wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md | 4 ++-- wiki/Users-Drive-Copy-Move.md | 6 ++++++ wiki/Version-and-Help.md | 12 ++++++------ 4 files changed, 34 insertions(+), 8 deletions(-) diff --git a/wiki/GamUpdates.md b/wiki/GamUpdates.md index 8aba69b5..d18230ad 100644 --- a/wiki/GamUpdates.md +++ b/wiki/GamUpdates.md @@ -10,6 +10,26 @@ 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.34.06 + +Added option `copyfolderpermissions []` to `gam copy|move drivefile`. + +When `copyfolderpermissions false` is specified, no folder permissions are copied; this simplifies +disabling all folder permission copying. + +When not specified or `copyfolderpermissions [true]` is specified, folder permissions are copied based on the following options: +``` +copymergewithparentfolderpermissions [] +copymergedtopfolderpermissions [] +copytopfolderpermissions [] +copytopfolderiheritedpermissions [] +copytopfoldernoniheritedpermissions never|always|syncallfolders|syncupdatedfolders +copymergedsubfolderpermissions [] +copysubfolderpermissions [] +copysubfolderinheritedpermissions [] +copysubfoldernoniheritedpermissions never|always|syncallfolders|syncupdatedfolders +``` + ### 7.34.05 Updated `gam report ` to perform a reverse chronological sort diff --git a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md index 0f2ac106..aa09b156 100644 --- a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md +++ b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md @@ -252,7 +252,7 @@ writes the credentials into the file oauth2.txt. gamteam@server:/Users/gamteam$ rm -f /Users/gamteam/GAMConfig/oauth2.txt gamteam@server:/Users/gamteam$ gam version WARNING: Config File: /Users/gamteam/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/gamteam/GAMConfig/oauth2.txt, Not Found -GAM 7.34.05 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.34.06 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3 arm64 @@ -1036,7 +1036,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.34.05 - https://github.com/GAM-team/GAM - pythonsource +GAM 7.34.06 - https://github.com/GAM-team/GAM - pythonsource GAM Team Python 3.14.3 64-bit final Windows 11 10.0.26200 AMD64 diff --git a/wiki/Users-Drive-Copy-Move.md b/wiki/Users-Drive-Copy-Move.md index adb10b35..d4452531 100644 --- a/wiki/Users-Drive-Copy-Move.md +++ b/wiki/Users-Drive-Copy-Move.md @@ -120,6 +120,7 @@ gam copy drivefile [copyfilepermissions []] [copyfileinheritedpermissions [] [copyfilenoninheritedpermissions [] + [copyfolderpermissions []] [copymergewithparentfolderpermissions []] [copymergedtopfolderpermissions []] [copytopfolderpermissions []] @@ -294,6 +295,8 @@ When a folder is copied, its permissions are not copied; these options control c of the form `option []`; if `` is omitted, `true` is assumed. When copied, a target folder inherits the permissions of its parent folder; these options control whether/how GAM copies the existing source folder permissions. +* `copyfolderpermissions false` - The permissions of the source folders are not copied to the target folder. +* `copyfolderpermissions true` - The permissions of the source folders are copied to the target folder based on the following options; this is the default action. When `mergewithparent` is `true`: * `copymergewithparentfolderpermissions false` - The permissions of the source top folder are not not copied to the target folder; this is the default action. @@ -571,6 +574,7 @@ gam move drivefile [newfilename ]] [duplicatefiles overwriteolder|overwriteall|duplicatename|uniquename|skip] [duplicatefolders merge|duplicatename|uniquename|skip] + [copyfolderpermissions []] [copymergewithparentfolderpermissions []] [copymergedtopfolderpermissions []] [copytopfolderpermissions []] @@ -660,6 +664,8 @@ When a folder is moved by recreating it, its permissions are not copied by the D For options of the form `option []`; if `` is omitted, `true` is assumed. When recreated, a target folder inherits the permissions of its parent folder; these options control whether/how GAM copies the existing source folder permissions; +* `copyfolderpermissions false` - The permissions of the source folders are not copied to the target folder. +* `copyfolderpermissions true` - The permissions of the source folders are copied to the target folder based on the following options; this is the default action. When `mergewithparent` is `true`: * `copymergewithparentfolderpermissions false` - The permissions of the source top folder are not not copied to the target folder; this is the default action. diff --git a/wiki/Version-and-Help.md b/wiki/Version-and-Help.md index 8e35ccd1..8aeda641 100644 --- a/wiki/Version-and-Help.md +++ b/wiki/Version-and-Help.md @@ -3,7 +3,7 @@ Print the current version of Gam with details ``` gam version -GAM 7.34.05 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.34.06 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3 arm64 @@ -15,7 +15,7 @@ Time: 2026-02-15T07:51:00-08:00 Print the current version of Gam with details and time offset information ``` gam version timeoffset -GAM 7.34.05 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.34.06 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3 arm64 @@ -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 -GAM 7.34.05 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.34.06 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3 arm64 @@ -68,7 +68,7 @@ MacOS High Sierra 10.13.6 x86_64 Path: /Users/gamteam/bin/gam7 Version Check: Current: 5.35.08 - Latest: 7.34.05 + Latest: 7.34.06 echo $? 1 ``` @@ -76,7 +76,7 @@ echo $? Print the current version number without details ``` gam version simple -7.34.05 +7.34.06 ``` In Linux/MacOS you can do: ``` @@ -86,7 +86,7 @@ echo $VER Print the current version of Gam and address of this Wiki ``` gam help -GAM 7.34.05 - https://github.com/GAM-team/GAM +GAM 7.34.06 - https://github.com/GAM-team/GAM GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3 arm64