在计算机上挂载“计算机" Google Drive到协作实验室 [英] Mount "Computers" of Google Drive to Colaboratory

查看:150
本文介绍了在计算机上挂载“计算机" Google Drive到协作实验室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我研究了从官方但是它只能通过命令

drive.mount('/content/gdrive')

drive.mount('/content/gdrive')

colab目录树的图片

但是,我想访问Colab中Google云端硬盘的计算机"文件夹.有什么办法吗?

However, I would like to access Google Drive's "Computers" folder in Colab. Is there some way to do it?

Google云端硬盘网络目录树的图片

谢谢!

推荐答案

以下是部分解决方案,可能对您有用:

Here is a partial solution that may work for you:

使用文件:更新 API调用,您可以将"root"作为父级添加到要同步的计算机内的任何文件夹中(设置addParents ="root").这样,文件夹可以同时存在于计算机"部分和我的云端硬盘"中,并应显示在协作室中.

By using the Files: update API call, you can add "root" as a parent to any folder inside the computer that you're syncing (set addParents="root"). This way a folder can live in both your Computers section and your My Drive, and should show up in Colaboratory.

这篇关于在计算机上挂载“计算机" Google Drive到协作实验室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆