[Errno 30] 只读文件系统: u'templates/jatin/abcpage/
我在一个使用Django的应用引擎项目中,把文件从一个文件夹复制到另一个文件夹。
source_file = os.listdir('templates/1/')
fileList = ['templates/1/'+filename for filename in source_file]
我在循环处理文件列表:
shutil.copy2(f, 'templates/'+request.user.username+'/abcpage/')
但是我遇到了以下错误:
IOError在/copy_file/ [错误号30] 只读文件系统: u'templates/jatin/abcpage/'
异常信息:
[错误号30] 只读文件系统:u'templates/jatin/abcpage/' 异常发生位置:C:\Program Files\Google\google_appengine\google\appengine\tools\devappserver2\python\stubs.py 在init的第245行
1 个回答
1
App Engine不支持复制文件。你上传的应用文件和其他文件,通过update
上传后,都是只读的,不能修改。