recursive copy in a directory tree?
Mark Hammond
mhammond at skippinet.com.au
Wed Oct 13 21:46:02 EDT 1999
> In article <7u39g2$ki5$1 at nnrp1.deja.com>, yinger
> <ayinger1 at my-deja.com> wrote:
> >
> > I am looking for a python util that *recursively* copies
> files from a
> >source directory tree to a target with wildcard syntax.
>
> os.path.walk() should get you mostly there.
Also check out the shutil module, and specifically the "copytree()"
function.
Mark.
More information about the Python-list
mailing list