繁体   English   中英

如何将包含多个文件夹的文件夹从谷歌驱动器上传到谷歌 colab

[英]How to upload folder with multiple folders from google drive to google colab

我有一个文件夹,里面有很多文件夹 - 将它上传到 google colab 的最佳方式是什么? 我尝试点击此链接: 如何将文件夹上传到 Google Colab? 但它没有找到我的文件夹:

!unzip -uq "/content/drive/My Drive/Data/Output/" -d "/content/drive/My Drive/Data/Output/"

并得到错误:

unzip:  cannot find or open /content/drive/Data/Output/, /content/drive/Data/Output/.zip or /content/drive/Data/Output/.ZIP.

Data是驱动器中的一个文件夹(在主目录中。它有一个名为“ output ”的文件夹,该文件夹有 20 个文件夹:001、002、... 020)。 我想上传所有output目录。

如果这些文件已经在你的谷歌驱动器上,最简单的方法是在 colab 中安装你的谷歌驱动器。

使用 colab notebook 中的 UI 无需代码即可完成。 连接实例,打开左上角的window,找到mount google drive按钮。

安装的驱动器应位于/content/drive/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM