Message249553
Do you mean the dst path has a trailing slash, but the directory doesn't exist? shutil.copy doesn't check for a trailing slash, so it attempts to open dst as a regular file. On Linux, and probably most POSIX systems, this results in an EISDIR (is a directory) error. On Windows the error is ERROR_INVALID_NAME, which the CRT maps to EINVAL (invalid argument). |
|
Date |
User |
Action |
Args |
2015-09-02 15:54:56 | eryksun | set | recipients:
+ eryksun, TheOrangeOne |
2015-09-02 15:54:56 | eryksun | set | messageid: <1441209296.96.0.572331398891.issue24977@psf.upfronthosting.co.za> |
2015-09-02 15:54:56 | eryksun | link | issue24977 messages |
2015-09-02 15:54:56 | eryksun | create | |
|