SyntaxFix
Write A Post
Hire A Developer
Questions
from subprocess import call def cp_dir(source, target): call(['cp', '-a', source, target]) # Linux cp_dir('/a/b/c/', '/x/y/z/')
It works for me. Basically, it executes shell command cp.