Message58112
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 |
| File name |
Uploaded |
|
shutil1.py
|
ianare,
2007-12-03.07:08:48
|
|
| Date |
User |
Action |
Args |
| 2007-12-03 07:08:50 | ianare | set | spambayes_score: 0.214918 -> 0.214918 recipients:
+ ianare |
| 2007-12-03 07:08:50 | ianare | set | spambayes_score: 0.214918 -> 0.214918 messageid: <1196665730.42.0.657784597912.issue1545@psf.upfronthosting.co.za> |
| 2007-12-03 07:08:50 | ianare | link | issue1545 messages |
| 2007-12-03 07:08:48 | ianare | create | |
|