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
Original issue reported on code.google.com by
elijahta...@chromium.org
on 17 Oct 2014 at 1:16