[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54508] isfile function needed for Matlab comp
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #54508] isfile function needed for Matlab compatibility |
Date: |
Mon, 13 Aug 2018 15:41:40 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
Follow-up Comment #1, bug #54508 (project octave):
I think the code you have is exactly correct. I asked someone to do some basic
testing, and isfile does return false on devices, sockets, and fifos.
Note that 'stat' dereferences symbolic links, so it is correct that 'stat' on
a symbolic link that points to an actual existing file will correctly indicate
that it is a file, not a symbolic link. The Matlab 'isfile' function behaves
the same, returns true if given a symbolic link that points to an ordinary
file. That conforms with the usual user interface for symbolic links, treat
them exactly as the thing they point to.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54508>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/