1
mirror of https://github.com/rclone/rclone synced 2024-11-21 22:50:16 +01:00

drive: debug when we are ignoring permissions #7853

This commit is contained in:
Nick Craig-Wood 2024-05-20 23:08:24 +01:00
parent de742ffc67
commit 8e2f596fd0

View File

@ -372,6 +372,7 @@ func (o *baseObject) parseMetadata(ctx context.Context, info *drive.File) (err e
// shared drives.
if o.fs.isTeamDrive && !info.HasAugmentedPermissions {
// Don't process permissions if there aren't any specifically set
fs.Debugf(o, "Ignoring %d permissions and %d permissionIds as is shared drive with hasAugmentedPermissions false", len(info.Permissions), len(info.PermissionIds))
info.Permissions = nil
info.PermissionIds = nil
}