Google 驱动器阻止访问 Colab 中的文件

Google drive blocked access to a file in Colab

我是这样挂载磁盘的:

from google.colab import drive
drive.mount('/content/drive', force_remount=True)

我可以访问磁盘上的所有文件,除了一个:MyDataset.zip

如果我尝试这样复制:

  copy_cmd = "/content/drive/My\ Drive/MyDataset.zip /content/MyDataset"
  !cp $copy_cmd

他写错了:

cp: error reading '/content/drive/My Drive/MyDataset.zip': Operation canceled

如果我尝试通过 colab 文件浏览器下载它,它会显示此错误:

Error
Download failed
Could not fetch resource at https://colab.research.google.com/tun/m/gpu-t4-s-3l8lfafkvov1w/files/content/drive/My%20Drive/MyDataset.zip?authuser=0: 500 
FetchError: Could not fetch resource at https://colab.research.google.com/tun/m/gpu-t4-s-3l8lfafkvov1w/files/content/drive/My%20Drive/MyDataset.zip?authuser=0: 500 
    at Dz.Cz [as constructor] (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20200129-085600-RC01_292181754:910:76)
    at new Dz (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20200129-085600-RC01_292181754:910:293)
    at Aa.program_ (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20200129-085600-RC01_292181754:4070:158)
    at Ca (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20200129-085600-RC01_292181754:17:336)
    at Aa.next_ (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20200129-085600-RC01_292181754:15:474)
    at Ea.next (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20200129-085600-RC01_292181754:18:206)
    at b (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20200129-085600-RC01_292181754:26:268)

在这种情况下,cp 和文件浏览器下载与安装磁盘上的任何其他文件一起工作。

查看此视频:https://imgur.com/a/RDPGjva

怎么了?

好吧,我解决了这个问题,这当然是一个拐杖,但我不得不将存档分成几部分,将其格式更改为 rar(zip 很糟糕,多卷并且不支持现代加密),并且加密它,之后Google不再阻止传输

最有趣的是MyDataset.zip下载了2次,然后突然停止了,甚至过了2天,代码和存档都没有任何变化。

Google 可以在没有警告的情况下阻止不需要的文件。