os.readlink returning value

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Nov 2 21:45:26 EDT 2007


En Fri, 02 Nov 2007 13:44:37 -0300, Giampaolo Rodola' <gnewsg at gmail.com>  
escribió:

> On 2 Nov, 05:30, "Gabriel Genellina" <gagsl-... at yahoo.com.ar> wrote:
>> En Thu, 01 Nov 2007 22:51:14 -0300, Giampaolo Rodola' <gne... at gmail.com>
>> escribió:
>>
>> > readlink( path)
>>
>> > ...It's not clear to me when the returning result could be absolute
>> > and when it could be relative.
>>
>> That depends on how the symlink was created. Assume the current

> I'd only want to do the same as what ls does in such cases.
> Imho, os.readlink() should have the same behaviour of ls, isn't it?

Yes; os.readlink shows the same as ls -l

-- 
Gabriel Genellina




More information about the Python-list mailing list