Skip to main content

backports shutil copytree (mainly for Python2)

Project description

backports.shutil_copytree

Usage

try:
    from inspect import signature
except ImportError:
    try:
        from funcsigs import signature
    except ImportError:
        signature = None

from shutil import copytree
if 'dirs_exist_ok' not in signature(copytree).parameters:
    from backports.shutil_copytree import copytree

Caveats

  • symlink stat is not copied when Python<3.3
  • directory junctions check on Windows Python<3.8 is done via pywin32, which is less-tested.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

backports.shutil_copytree-0.0.0.2.tar.gz (3.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page