Message7033

Author amak
Recipients amak, mansion
Date 2012-04-06.20:39:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1333744786.26.0.470904240232.issue1872@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-04-06 20:39:46amaksetmessageid: <1333744786.26.0.470904240232.issue1872@psf.upfronthosting.co.za>
2012-04-06 20:39:46amaksetrecipients: + amak, mansion
2012-04-06 20:39:46amaklinkissue1872 messages
2012-04-06 20:39:46amakcreate