bpd1069 / naclports

Automatically exported from code.google.com/p/naclports
0 stars 0 forks source link

python os.utime always raises an OSError #151

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
os.utime always fails with OSError:

bash.nmf-4.2$ touch myfile.txt
bash.nmf-4.2$ python 

>>> os.utime('myfile.txt', (0,0))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 22] Invalid argument: 'myfile.txt'
>>> os.utime('/home/user/test/myfile.txt', (0,0))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 22] Invalid argument: '/home/user/test/myfile.txt'

This is used by other lib functions, I was trying to use shutil.copy2 and 
internally this was thrown.

Original issue reported on code.google.com by elijahta...@chromium.org on 17 Oct 2014 at 1:16

GoogleCodeExporter commented 9 years ago
Thanks for all the bugs!  Will take a look.

Original comment by sbc@google.com on 17 Oct 2014 at 1:44

GoogleCodeExporter commented 9 years ago

Original comment by sbc@google.com on 21 Nov 2014 at 1:54