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

View file

@ -1411,6 +1411,7 @@ func (f *Fs) CreateDir(ctx context.Context, pathID, leaf string) (newID string,
leaf = f.opt.Enc.FromStandardName(leaf) leaf = f.opt.Enc.FromStandardName(leaf)
// fmt.Println("Making", path) // fmt.Println("Making", path)
// Define the metadata for the directory we are going to create. // Define the metadata for the directory we are going to create.
pathID = actualID(pathID)
createInfo := &drive.File{ createInfo := &drive.File{
Name: leaf, Name: leaf,
Description: leaf, Description: leaf,