I need a function in python that allows me to specify the source and destination path for a folder and recursively copy the source folder to the destination folder. The implementation I'm looking for should be platform independent.
You can use shutil.copytree :
shutil.copytree (src, dst, symlinks = False, ignore = None, copy_function = copy2, ignore_dangling_symlinks = False), src, . , dst, ; , . copystat(), shutil.copy2().
shutil.copytree (src, dst, symlinks = False, ignore = None, copy_function = copy2, ignore_dangling_symlinks = False)
, src, . , dst, ; , . copystat(), shutil.copy2().
import shutil shutil.copytree(src, dst)
Source: https://habr.com/ru/post/1568539/More articles:How to work exactly with Spring RowMapper interface? - javaCarousel bootstrap text dims in Safari - cssfast UIActivityIndicatorView with NSURLConnection - iosImport existing Google App Engine into Android Studio - eclipseConnecting to OrientDB from Python (options) - pythonHow to create a full-size navigation box Android 5 - androidWhen and why use macroC # define (x) instead of a function? - c ++How can I get generics in javadoc code block? - javaWhat is the meaning of these #defines? - cHow to include cross origin queries in compojure? - clojureAll Articles