Example of resolving an alias using Carbon.File module?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • fortepianissimo@gmail.com

    #1

    Example of resolving an alias using Carbon.File module?

    This is a question only relevant to Mac OS X. Could someone offer a
    simple example how to use Carbon.File module (perhaps
    Alias.FSResolve Alias()?) to resolve an alias? Basically I'd like to
    load in an alias file and find out which file/directory the alias
    points to.

    Thanks a lot!

  • fortepianissimo

    #2
    Re: Example of resolving an alias using Carbon.File module?

    Problem solved:

    from Carbon.File import *
    fs, _, _ = ResolveAliasFil e('/some/path', 1)
    print fs.as_pathname( )

    Comment

    Working...