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.

Project details


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 details)

Uploaded Source

File details

Details for the file backports.shutil_copytree-0.0.0.2.tar.gz.

File metadata

  • Download URL: backports.shutil_copytree-0.0.0.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/2.7.18

File hashes

Hashes for backports.shutil_copytree-0.0.0.2.tar.gz
Algorithm Hash digest
SHA256 6982aa0a66b8ed299cd8b129ba2dd8ab8f5b35d02131a8a7a842919b2febed0d
MD5 be7794a1f0e2e5548fdbe6d0560ae16d
BLAKE2b-256 e417034795679bdcd518409693aab6d210c8963c64fa031351741bf522f1f914

See more details on using hashes here.

Supported by

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