[Israel.pm] how to get fullpath of file from

Omer Zak omerz at actcom.co.il
Thu Jul 15 04:13:14 PDT 2004


Itamar Elem wrote:
> hi 
> how do i get file full path from
> 1. file handle
> 2 from relative path
> in c++ on unix
> itamar

1. This is offtopic on Perl mailing list.  Can anyone borrow Marc's 
differential SCSI cable from Linux-IL mailing list to beat Itamar with?
2. I think that from file handle it is not possible in general to get 
full path.  The most which you could get is the file's inode, which may 
be hard-linked to by several file paths.
3. From relative path:  find current working directory, and concatenate 
to it your relative path.
                                              --- Omer
My own blog is at http://www.livejournal.com/users/tddpirate/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html




More information about the Perl mailing list