| ★ wanayoo — archive 1999 http://mail.python.org/pipermail/pythonmac-sig/2001-October/004255.html | Nouvelle recherche | Portail wanayoo |
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