create destination path for shutil.copy files

Posted by james on Stack Overflow See other posts from Stack Overflow or by james
Published on 2010-05-08T11:00:24Z Indexed on 2010/05/08 11:08 UTC
Read the original article Hit count: 163

Filed under:

if b/c/ does not exist in ./a/b/c , shutil.copy("./blah.txt", "./a/b/c/blah.txt") will complain that the destination does not exist.

how can i create the path at the same time?

© Stack Overflow or respective owner

Related posts about python