0

Is there a known problem to write on an mounted afp volume with python (2.7.3)?

>f = open("/mnt/foo/test.txt","w+");

this results in

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 5] Input/output error: '/mnt/foo/test.txt'

python creats the file but I'm unable too use the file-object. When I'm trying the same as before but with an existing file, everything works without an error.

arbyter
  • 539
  • 1
  • 4
  • 12

1 Answers1

1

Please check the permissions of /mnt/foo/test.txt file. That would resolve the problem.

  • 1
    Read and write permissions are not sufficient to create and write a file at once. If execution permission are granted everything works. – arbyter Oct 23 '14 at 11:13