[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] GetFileInfo--link vs. file



I've been watching since early August and haven't seen anything posted on
differentiating between a link (alias, in Mac terminology) and a realio
trulio file.

I know that stat() will check the file pointed to [aliased?], while lstat()
gets info on the alias itself. But that's just the standard unix-like
(non-mac) info.


QUESTION:
How to tell GetFileInfo() the difference?


Right now I'm using an icky kludge to avoid jumping links:
($creat,$typ) = ($islink ? ("?drp","?drp") : MacPerl::GetFileInfo($fyl));

Surely there's a better way... TIA!

W.Trillich

                        _/
                       _/   _/
 _/         _/  _/_/_/_/ _/_/_/_/
 _/  _/   _/  _/     _/   _/
 _/ _/  _/   _/     _/   _/
  _/ _/      _/_/_/_/    _/_/

www.pinncomp.com/~will/wt/  ||  will@pinncomp.com