iterative / PyDrive2

Google Drive API Python wrapper library. Maintained fork of PyDrive.
https://docs.iterative.ai/PyDrive2
Other
580 stars 69 forks source link

How to move files and folders accross the drive? #227

Closed meet1919 closed 2 years ago

meet1919 commented 2 years ago

How to change the parent of a file or folder to change to another folder? So I think this way a file/folder can be moved.

shcheklein commented 2 years ago

Hey, please check this PR by @simone-viozzi that attempts to implement mv. Idea is that you could update files's parent directly and then Upload it.

https://github.com/iterative/PyDrive2/pull/217/files

shcheklein commented 2 years ago

I would use the file.Upload() call though, no the private file._...