drive: fix creating a directory inside a shortcut

See: https://forum.rclone.org/t/cant-create-new-directory-on-google-drive-remote/17208
This commit is contained in:
Nick Craig-Wood 2020-06-17 11:32:28 +01:00
parent 3efdf5e095
commit 5e6f4ab281
1 changed files with 1 additions and 0 deletions

View File

@ -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,