permission
Remco Gerlich
scarblac at pino.selwerd.nl
Tue May 15 03:05:53 EDT 2001
LC <lco at gofuse.com> wrote in comp.lang.python:
> 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
Maybe you don't have permission? (I never use Windows, no idea)
> Also, does anyone know if I can move a file as opposed to copying it using
> shutil? or some other module?
os.rename()
--
Remco Gerlich
More information about the Python-list
mailing list