Message7033
I've confirmed that it is the attempt to update the atime and mtime that is the cause of the error. If I define the copystat function this way
def copystat(src, dst):
"""Copy all stat info (mode bits, atime and mtime) from src to dst"""
st = os.stat(src)
mode = stat.S_IMODE(st.st_mode)
# if hasattr(os, 'utime'):
# os.utime(dst, (st.st_atime, st.st_mtime))
if hasattr(os, 'chmod'):
os.chmod(dst, mode)
The error does not appear. |
|
Date |
User |
Action |
Args |
2012-04-06 20:39:46 | amak | set | messageid: <1333744786.26.0.470904240232.issue1872@psf.upfronthosting.co.za> |
2012-04-06 20:39:46 | amak | set | recipients:
+ amak, mansion |
2012-04-06 20:39:46 | amak | link | issue1872 messages |
2012-04-06 20:39:46 | amak | create | |
|