From 5e6f4ab2818e73d60cf6a6f3cfad28c33556e795 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 17 Jun 2020 11:32:28 +0100 Subject: [PATCH] drive: fix creating a directory inside a shortcut See: https://forum.rclone.org/t/cant-create-new-directory-on-google-drive-remote/17208 --- backend/drive/drive.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/drive/drive.go b/backend/drive/drive.go index ec0aa1c5f..a24de71a2 100755 --- a/backend/drive/drive.go +++ b/backend/drive/drive.go @@ -1411,6 +1411,7 @@ func (f *Fs) CreateDir(ctx context.Context, pathID, leaf string) (newID string, leaf = f.opt.Enc.FromStandardName(leaf) // fmt.Println("Making", path) // Define the metadata for the directory we are going to create. + pathID = actualID(pathID) createInfo := &drive.File{ Name: leaf, Description: leaf,