Colab 到 Google 云端硬盘:如何仅将新文件复制到云端硬盘?

时间:2021-03-23 14:32:50

标签: python google-drive-api google-colaboratory

我想要做的是仅自动将新文件从 colab 复制到驱动器,即仅将 google 驱动器文件夹中不存在的文件复制。

这是目前的手动方法,一次只能做一个文件
我必须从 Colab 手动复制文件路径,然后将其粘贴为输入。

#@title Share
Path = input("Enter File Path")
!cp "$Path" "/content/drive/MyDrive/files2"

0 个答案:

没有答案