Skip to content

Instantly share code, notes, and snippets.

@Hansimov
Created July 20, 2021 02:29
Show Gist options
  • Select an option

  • Save Hansimov/7a83678e3b5265c663b5b18c76c5387f to your computer and use it in GitHub Desktop.

Select an option

Save Hansimov/7a83678e3b5265c663b5b18c76c5387f to your computer and use it in GitHub Desktop.
python copy folder recursively
cmd_cp_folder = 'cp -a {} {}'
def copy_folder(src, dst):
src = os.path.join(src, '.')
shell_cmd(cmd_cp_folder.format(src,dst))
copy_folder('dir1', 'par/dir2')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment