Example of resolving an alias using Carbon.File module?

Discussion in 'Python' started by fortepianissimo@gmail.com, Jan 21, 2005.

  1. Guest

    This is a question only relevant to Mac OS X. Could someone offer a
    simple example how to use Carbon.File module (perhaps
    Alias.FSResolveAlias()?) 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!
    , Jan 21, 2005
    #1
    1. Advertising

  2. Problem solved:

    from Carbon.File import *
    fs, _, _ = ResolveAliasFile('/some/path', 1)
    print fs.as_pathname()
    fortepianissimo, Jan 21, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. donbro
    Replies:
    2
    Views:
    525
    donbro
    Nov 1, 2005
  2. Abhilash
    Replies:
    0
    Views:
    262
    Abhilash
    Feb 7, 2007
  3. kitty
    Replies:
    3
    Views:
    481
    Joe Kesselman
    Jan 7, 2007
  4. grocery_stocker
    Replies:
    9
    Views:
    733
    grocery_stocker
    May 24, 2008
  5. msmucr
    Replies:
    3
    Views:
    466
    msmucr
    May 15, 2012
Loading...

Share This Page