[疑似Bug]Storage模拟文件系统不可读?

8 views
Skip to first unread message

YufeiLi

unread,
Nov 9, 2014, 2:39:29 PM11/9/14
to sae-p...@googlegroups.com
挂载后:
	按地址访问,
		_path = ‘/s/documents/yufeili/data.md’
		open(_path, ‘r')
	两个API都测试过,Bucket SDK没有问题,只有模拟挂载不可读(但可写)。
	希望能有工作人员测试一下,并帮助我解决此问题,感激不尽。

	PS:
		重构几个开源项目,由于上游极其依赖文件系统,所以如果能挂载的话会非常方便,否则的话代码量很悲剧……,T_T

Error Report:
Traceback (most recent call last):
  File "/usr/local/sae/python/3rd/tornado-3.1.1/tornado/web.py", line 1141, in _when_complete
    callback()
  File "/usr/local/sae/python/3rd/tornado-3.1.1/tornado/web.py", line 1162, in _execute_method
    self._when_complete(method(*self.path_args, **self.path_kwargs),
  File "/data1/www/htdocs/936/algo/1/BlogPages.py", line 35, in get
    with open(_path) as f:
  File "/usr/local/sae/python/lib/python2.7/site-packages/sae/ext/storage/monkey.py", line 205, in open
    _ensure_dir_exists(os.path.dirname(filename))
  File "/usr/local/sae/python/lib/python2.7/site-packages/sae/ext/storage/monkey.py", line 191, in _ensure_dir_exists
    raise IOError(ENOTDIR, 'Not a directory')
IOError: [Errno 20] Not a directory

Reply all
Reply to author
Forward
0 new messages