On 2009-09-23, Jeremy Conlin <jlcon...@gmail.com> wrote:

> I am trying to copy a folder hierarchy from one location to another.
> I can use the shutil.copytree function to copy the folder tree, but I
> don't want the files copied, just the folders.  What is a good way to
> approach this?

Just in case there's no real requirement to use Python...

$ (cd srcdir; find . -type d) | (cd dstdir; xargs mkdir)

-- 
Grant Edwards                   grante             Yow! ... My pants just went
                                  at               on a wild rampage through a
                               visi.com            Long Island Bowling Alley!!
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to