I Think I May Never See...
Feb. 2nd, 2010 01:56 pmSo 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?
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?