相关疑难解决方法(0)

如何使用 Python API 在 Google Cloud Storage 上上传文件夹

我已成功上传单个文本文件Google Cloud Storage。但是当我尝试上传时whole folder,它允许denied error.

filename = "d:/foldername"   #here test1 is the folder.


Error:
Traceback (most recent call last):
  File "test1.py", line 142, in <module>
    upload()
  File "test1.py", line 106, in upload
    media = MediaFileUpload(filename, chunksize=CHUNKSIZE, resumable=True)
  File "D:\jatin\Project\GAE_django\GCS_test\oauth2client\util.py", line 132, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "D:\jatin\Project\GAE_django\GCS_test\apiclient\http.py", line 422, in __init__
    fd = open(self._filename, 'rb')
IOError: [Errno 13] Permission denied: 'd:/foldername'
Run Code Online (Sandbox Code Playgroud)

python django google-app-engine

9
推荐指数
3
解决办法
6830
查看次数

标签 统计

django ×1

google-app-engine ×1

python ×1