How do I copy folders using python? Shutil.copy doesn't work. it raises a permission denied error in windows
mahela007
6
Posting Whiz in Training
Recommended Answers
Jump to Postwhat permission error does it give? and only on windows?
from the api, copy should only have a file as its source so you shouldn't be able to copy folders using it. maybe shutil.copytree is what you are looking for?
Jump to PostIf you're getting a permission denied error, that usually indicates that your program doesn't have enough privileges to do what it wants to do. Where are you copying the file to? And is this a Vista OS?
All 7 Replies
sillyboy
43
Practically a Master Poster
mahela007
6
Posting Whiz in Training
scru
909
Posting Virtuoso
Featured Poster
mahela007
6
Posting Whiz in Training
sillyboy
43
Practically a Master Poster
mahela007
6
Posting Whiz in Training
svn799
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.