★ wanayoo — archive 1999 http://mail.python.org/pipermail/pythonmac-sig/2001-October/004255.htmlNouvelle recherche | Portail wanayoo

[Pythonmac-SIG] folder aliases

Just van Rossum just@letterror.com
Thu, 11 Oct 2001 17:06:12 +0200


Jakob Spies wrote:

> Let x be anything that can be contained in a folder, e.g. gotten by calling
> os.listdir(). Is there a recommended way (on Mac OS X _and_ Classic Mac OS)
> of determining whether x is an alias? The difficult case is when isdir(x) is
> true. The function I arrived at is attached below and does not look very
> convincing:

I think you should use macfs.ResolveAliasFile().

Just