【发布时间】:2014-10-25 07:24:33
【问题描述】:
我已在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'
【问题讨论】:
-
整个文件夹。?我想你需要检查developers.google.com/appengine/docs/python/blobstore/…
-
压缩文件夹并上传。
标签: python django google-app-engine