Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

drive: fix creating a directory inside a shortcut

Nick Craig-Wood5e6f4ab2818e
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,