permission

LC lco at gofuse.com
Mon May 14 21:45:29 EDT 2001


What would be the problem if i'm using the following code ...

import shutil, os
shutil.copy(logfile, 'c:/')
os.remove(logfile)
print 'done'

and i'm producing an error "errno 13 permission denied 'c:/' "

works ok on one my dev machine but not on production machine. Any suggestion
would be appreciated. TIA

Also, does anyone know if I can move a file as opposed to copying it using
shutil? or some other module?

LC





More information about the Python-list mailing list