[Pythonmac-SIG] detecting aliases
lee_cullens at mac.com
Mon Jun 6 04:09:10 CEST 2005
One of my little utilities needs to know when it encounters links/
I can of course detect a Unix symbolic link with os.path.islink
('path') and determine what it points to with os.readlink('path'),
but an Aqua alias only triggers os.isfile and it has a size of zero.
The size is not a reliable indicator though and I was wondering how
(in Python) to detect such and determine what it points to.
Is this one of those OS unique things where I need to get into the
dev tools to resolve? I've been putting such off till I get into
ObjC, since Bob said I would understand the interfaces better then.
I'm not asking you to solve my little problem, just keep me pointed
in the right direction :~)
More information about the Pythonmac-SIG