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 james_r_c_stevens
Recipients dstufft, eric.araujo, james_r_c_stevens
Date 2018-06-26.12:04:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1530014691.54.0.56676864532.issue33969@psf.upfronthosting.co.za>
In-reply-to
Content
Even if the mount-point directory is empty, "copytree" refuses to copy to a it becuase it will not perform a copy if the destination directory already exists - although it will accept any of the parents of destination existing, or not. Therefore, "copytree" is unable to copy to the top directory of (say) a USB Stick.

This also means "copytree" can't be used to merge the contents of two source directories into a single destination. etc,etc

This one flaw means that the use scenarios for "copytree" are actually extremely limited when compared to (say) "cp" - but running "subprocess.call(["cp","-a",...])" as commonly recommended on StackOverflow is not an ideal solution for lots of reasons.
History
Date User Action Args
2018-06-26 12:04:51james_r_c_stevenssetrecipients: + james_r_c_stevens, eric.araujo, dstufft
2018-06-26 12:04:51james_r_c_stevenssetmessageid: <1530014691.54.0.56676864532.issue33969@psf.upfronthosting.co.za>
2018-06-26 12:04:51james_r_c_stevenslinkissue33969 messages
2018-06-26 12:04:51james_r_c_stevenscreate