Created
July 20, 2021 02:29
-
-
Save Hansimov/7a83678e3b5265c663b5b18c76c5387f to your computer and use it in GitHub Desktop.
python copy folder recursively
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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