Hi guys ,
how i can fix this problem in python 2.7 ?
IOError: [Errno 13] Permission denied
how i can fix this problem in python 2.7 ?
IOError: [Errno 13] Permission denied
Code:
import os, fnmatch
from shutil import *
for subdir, dirs, files in os.walk('e:'):
for file in files:
if fnmatch.fnmatch(file, '*.pdf'):
print file
copyfile(file,'/dir')