drive_move_file
Move a Drive file or folder to a new parent using ID or path. Preserves links, can create missing folders, and returns old and new paths.
Instructions
Move a file or folder into a different Drive folder.
Changes the item's parent; the id, name, and contents are untouched, so existing links keep working. Moving a folder moves everything under it.
file is a Drive file id or a path from My Drive root.
destination_folder is likewise an id or a path, and must resolve to
a folder. create_destination creates any missing folders along the
destination path (like mkdir -p) — it defaults to False so a typo in
the destination is an error rather than a new folder in the wrong place.
Returns the item's id and its old and new paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| create_destination | No | ||
| destination_folder | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||