[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 17:45:34 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
Update of bug #54508 (project octave):
Status: In Progress => Fixed
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #3:
I added the new function isfile here
https://hg.savannah.gnu.org/hgweb/octave/rev/0862570da0ae.
It might be worth replacing these instances of exist with isfile or isfolder
that I found through grepping.
help/doc.m:81: && ! exist ([info_file_name ".bz2"], "file"))
help/doc.m:116:%! if (exist (ifile) != 2 && exist (sprintf ("%s.gz", ifile))
!= 2)
miscellaneous/copyfile.m:144:%! assert (exist (f2, "file"));
miscellaneous/grabcode.m:59: if (exist (url) == 2)
/bin/grep: miscellaneous/isdir.m: No such file or directory
miscellaneous/movefile.m:157:%! assert (exist (f2, "file"));
miscellaneous/open.m:77: && any (exist (["open" tolower(ext(2:end))]) ==
[2 3 5 103]))
miscellaneous/publish.m:199: if (exist (file, "file") != 2)
miscellaneous/publish.m:208: if (exist ([file_name, file_ext]) != 2)
path/private/getsavepath.m:27: if (exist (file) == 2)
pkg/private/install.m:507: if (! exist (octm2, "dir"))
plot/util/print.m:334: do_unlink = (exist (opts.name, "file") != 2);
But for now, I'm going to close this report as fixed.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54508>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/