danalwyn: (Default)
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?

Profile

danalwyn: (Default)
danalwyn

November 2017

S M T W T F S
   1234
567891011
12131415161718
192021 22232425
2627282930  

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags