Copy directory tree without copying files

Tim Golden mail at timgolden.me.uk
Wed Sep 23 11:15:45 EDT 2009


Jeremy Conlin 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?
>> Thanks,
> Jeremy

Use os.walk and create the directories as they appear?
TJG


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /