[Python-ideas] os.path.join() failure

Aahz aahz at pythoncraft.com
Wed Oct 3 02:05:04 CEST 2007


On Wed, Oct 03, 2007, Greg Ewing wrote:
> Aahz wrote:
>>
>> cp -a foo bar
>> 
>> and
>> 
>> cp -a foo/ bar
>> 
>> The two are almost identical *except* when foo is a symlink to a
>> directory,
> 
> Hm. I would call this a misfeature of the version of cp you're using.
>
> In Unix, a trailing slash is *never* supposed to be significant.

Well, it often is.  See e.g. man rsync.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

The best way to get information on Usenet is not to ask a question, but
to post the wrong information.



More information about the Python-ideas mailing list