Message58112
| 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:50 | ianare | set | spambayes_score: 0.214918 -> 0.21491838 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 |
|