在afp卷错误上使用python创建和写入文件
使用python(2.7.3)在装入的afp卷上写入是否存在已知问题 这导致在afp卷错误上使用python创建和写入文件,python,linux,raspbian,fuse,afp,Python,Linux,Raspbian,Fuse,Afp,使用python(2.7.3)在装入的afp卷上写入是否存在已知问题 这导致 Traceback (most recent call last): File "<stdin>", line 1, in <module> IOError: [Errno 5] Input/output error: '/mnt/foo/test.txt' 回溯(最近一次呼叫最后一次): 文件“”,第1行,在 IOError:[Errno 5]输入/输出错误:'/mnt/foo/test.t
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 5] Input/output error: '/mnt/foo/test.txt'
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
IOError:[Errno 5]输入/输出错误:'/mnt/foo/test.txt'
python创建了这个文件,但我不能使用file对象。当我尝试与以前相同的操作,但使用现有文件时,一切正常。请检查
/mnt/foo/test.txt
文件的权限。这将解决问题。您必须对该文件授予足够的权限才能使用True。读取和写入文件的权限不足。我还拥有执行权:|然后我给出一个答案,将这个问题标记为已解决:)读写权限不足以一次创建和写入文件。如果执行许可被授予,一切都能正常工作。
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 5] Input/output error: '/mnt/foo/test.txt'