danalwyn: (Default)
danalwyn ([personal profile] danalwyn) wrote2010-02-02 01:56 pm

I Think I May Never See...

So in python, if you want to copy a file, you can use a function called shutil.copyfile()

But if you want to copy a directory, you use a function called shutil.copytree()

Although this explains how I just spent serious time trying to figure out why python was telling me that there was no such function as shutil.copydir(), I have to ask: How does that make any sense?

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting