This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author roysmith
Recipients georg.brandl, roysmith
Date 2008-04-15.16:11:04
SpamBayes Score 0.005114368
Marked as misclassified No
Message-id <1208275866.73.0.43584708825.issue2639@psf.upfronthosting.co.za>
In-reply-to
Content
The current doc says, "Copy the contents of the file named src to a file 
named dst".  Anybody used to the unix shell "cp" command would assume that 
dst could be a directory, in which case the true destination is a file in 
that directory with the same basename as src.  Experimentation shows that 
this is not true.  A note something like the following would help:

Note: unlike the "cp" shell command, dst may not be a directory; it must 
be a path to a file in that directory.

True, there's no place in the docs which actually says a directory is 
valid for dst, but the name of the module is shutil, so it's reasonable 
for people to assume that these act the same way as the corresponding unix 
shell commands.  It should be stated up front that this is not true, to 
avoid confusion.
History
Date User Action Args
2008-04-15 16:11:07roysmithsetspambayes_score: 0.00511437 -> 0.005114368
recipients: + roysmith, georg.brandl
2008-04-15 16:11:06roysmithsetspambayes_score: 0.00511437 -> 0.00511437
messageid: <1208275866.73.0.43584708825.issue2639@psf.upfronthosting.co.za>
2008-04-15 16:11:05roysmithlinkissue2639 messages
2008-04-15 16:11:05roysmithcreate