Il giorno Wed, 23 Oct 2013 22:18:04 +0200
Luigi Fontana <picchiole...@gmail.com> ha scritto:

> Ciao
> 
> Nella mia cartella "Programmi"  ho un file chiamato "prova01.py". Volevo
> copiarlo nella cartella "Documenti"  ma col comando
> 
> shutil.copyfile("prova01.py", "Documenti")
> 
> Mi da errore.
> 
> Cosa sbaglio?
> 

dalla doc: 
shutil.copyfile(src, dst)
  Copy the contents (no metadata) of the file named src to a file named dst.
  dst must be the complete target file name; look at shutil.copy() for a copy
  that accepts a target directory path.

dst dev'essere il file di destinazione.





-- 
me -> http://crap0101.gnu-darwin.org/

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a