[Top][All Lists]

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

[Octave-bug-tracker] [bug #56618] In dir.m, if internal call to lstat fa

From: Richard
Subject: [Octave-bug-tracker] [bug #56618] In dir.m, if internal call to lstat falis, an error is thrown unnecessarily
Date: Fri, 12 Jul 2019 06:42:42 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0

Follow-up Comment #3, bug #56618 (project octave):

Well, personally, this would break my code, which checks for empty fields in
the structure. I'd have to wrap it in a try-catch instead. Other users might
be affected (but perhaps not many).

It may also break compatibility with matlab, I don't know what it does for
sure, I don't know if the issue has happened to me on matlab, or if they are
just faster at getting the info. In my case I am using a modified version of
the multicore package (the original is no longer maintained on Octave Forge)
which communicates between workers using files on a common file system. I
think the problem for me is that the file is being deleted in between it being
found and the call to lstat. This possibility is accounted for in the
multicore package and the file is ignored if  certain fields are empty in the

If the call to lstat could happen sooner after getting the file list it might

Another option is to check again if the file actually still exists in the
event that lstat fails, and remove it from the list if it doesn't.


Reply to this item at:


  Message sent via Savannah

reply via email to

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