path and destination are in fact the same directory (uploads) i'm just
trying to make a copy.

Thanks

On 11 nov, 11:12, mdipierro <mdipie...@cs.depaul.edu> wrote:
> what are path and destination?
>
> On Nov 11, 9:20 am, CesarBustios <cesarbust...@gmail.com> wrote:
>
>
>
> > I'm using the whole path, i'm trying everything but i can't copy the
> > file. Any thoughts?
>
> > On 10 nov, 20:18, CesarBustios <cesarbust...@gmail.com> wrote:
>
> > > Hi, i'm trying to make a copy of an image inside my "uploads" folder. I
> > > ´m using the shutil module:
>
> > > import shutil
> > > shutil.copy(path, destination)
>
> > > But i get "No such file or directory" error. Can anyone tell me the
> > > correct path if my project is inside: /home/user/web2py/applications/
> > > myproject/uploads/File.file.asdad89018239.128320.jpg
>
> > > Thanks!- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

Reply via email to