New submission from James Stevens <james.stev...@jrcs.co.uk>:
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. ---------- components: Distutils messages: 320487 nosy: dstufft, eric.araujo, james_r_c_stevens priority: normal severity: normal status: open title: "copytree" refuses to copy to a mount point type: behavior versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33969> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com