os.path.islink()

Peter Maas peter at somewhere.com
Wed Dec 8 10:23:13 CET 2004


Egor Bolonev schrieb:
> far file manager said 'C:\Documents and Settings\Егор\My  
> Documents\Scripts\Antiloop\' is link
> 
> how to detect ntfs links?

There are no ntfs links. What appears as a link on GUI level is
nothing but a plain file with special content, so that
os.path.islink() tells the truth. Windows "links" are a special
Windows feature (shortcuts) and must be detected via Win32 api
calls or by searching for content characteristics of shortcuts.

-- 
-------------------------------------------------------------------
Peter Maas,  M+R Infosysteme,  D-52070 Aachen,  Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
-------------------------------------------------------------------



More information about the Python-list mailing list