Updated functionality of option preservefiletimes in gam <UserTypeEntity> update drivefile <DriveFileEntity>.

This commit is contained in:
Ross Scroggs
2023-12-14 10:06:46 -08:00
parent 2bb0088ade
commit 80fc40a9c7
8 changed files with 46 additions and 13 deletions

View File

@@ -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 <Time>`.
The option `preservefiletimes`, when used with `localfile <FileName>`, will set the `modifiedTime` attribute from the local file.
* `preservefiletimes localfile <FileName>` - `modifiedTime` of `<DriveFileEntity>` is set to that of `localfile <FileName>`
* `preservefiletimes` - `modifiedTime` of `<DriveFileEntity>` retains its current value
These are the naming rules when updating from a local file:
* `update drivefile drivefilename "GoogleFile.csv" localfile "NewLocalFile.csv"` - Google Drive file "GoogleFile.csv" is renamed "NewLocalFile.csv"