Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old July 18th, 2005, 09:29 PM
fortepianissimo@gmail.com
Guest
 
Posts: n/a
Default 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.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!




  #2  
Old July 18th, 2005, 09:30 PM
fortepianissimo
Guest
 
Posts: n/a
Default Re: Example of resolving an alias using Carbon.File module?

Problem solved:

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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,414 network members.