[Top][All Lists]

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

[Octave-bug-tracker] [bug #54508] isfile function needed for Matlab comp

From: Rik
Subject: [Octave-bug-tracker] [bug #54508] isfile function needed for Matlab compatibility
Date: Mon, 13 Aug 2018 15:23:40 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0


                 Summary: isfile function needed for Matlab compatibility
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Mon 13 Aug 2018 12:23:38 PM PDT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any



Octave has an isfolder.m function to test whether a name is a directory. 
Matlab has a similar function isfile() to test whether a name is a file.

It would be very simple to implement an isfile.m function in Octave based on
isfolder.  The only question is how non-text files are handled.  For example,
is a symbolic link still a "file" according to Matlab's implementation of

We need someone to check isfile() on Linux on files which are symbolic links,
FIFOs, and sockets.  If those all return false then the code for isfile is

[info, err] = stat (f{i});
retval(i) = (! err && S_ISREG (info.mode));


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]