Denis Sukhonin added the comment:
It returns an integer.
import os
os.open('/tmp/test', os.O_RDONLY)
3
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23346
Denis Sukhonin added the comment:
No, it throws 22.
os.listdir(os.open('/tmp/test', os.O_RDONLY))
Traceback (most recent call last):
File stdin, line 1, in module
OSError: [Errno 22] Invalid argument
--
___
Python tracker rep...@bugs.python.org
Denis Sukhonin added the comment:
The same problem.
os.listdir(os.open('/tmp/test/', os.O_RDONLY))
Traceback (most recent call last):
File stdin, line 1, in module
OSError: [Errno 22] Invalid argument
--
___
Python tracker rep...@bugs.python.org
New submission from Denis Sukhonin:
shutil.rmtree doesn't work correctly on FreeBSD 9.1.
For example if I create a path /tmp/test and try to remove it, I get an
exception:
shutil.rmtree('/tmp/test')
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/local/lib