permission
Rainy
sill at optonline.net
Tue May 15 01:39:33 EDT 2001
On Mon, 14 May 2001 18:45:29 -0700, LC <lco at gofuse.com> wrote:
> 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
os.rename(old,new)?
>
>
--
Don't be so humble -- you are not that great
- Golda Meir
More information about the Python-list
mailing list