This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ianare
Recipients ianare
Date 2007-12-03.07:08:48
SpamBayes Score 0.21491838
Marked as misclassified No
Message-id <1196665730.42.0.657784597912.issue1545@psf.upfronthosting.co.za>
In-reply-to
Content
When using shutil.copy2 or copytree where the source is on a filesystem
that has octal permissions (ie ext3) and the destination is on an NTFS
partition mounted rw, the operation fails with

OSError: [Errno 1] Operation not permitted


I am attaching a version of shutil.py where this has been worked around
by calling copystat like so:

try:
    copystat(src, dst)
except OSError, (n, str):
    # can't change stats on NTFS partition even if
    # OS supports it
    if n == 1:
        pass
    else:
        raise Error, str
Files
File name Uploaded
shutil1.py ianare, 2007-12-03.07:08:48
History
Date User Action Args
2007-12-03 07:08:50ianaresetspambayes_score: 0.214918 -> 0.21491838
recipients: + ianare
2007-12-03 07:08:50ianaresetspambayes_score: 0.214918 -> 0.214918
messageid: <1196665730.42.0.657784597912.issue1545@psf.upfronthosting.co.za>
2007-12-03 07:08:50ianarelinkissue1545 messages
2007-12-03 07:08:48ianarecreate