hi, for those (like me) who find checking for file existence via stat/lstat a little inconvenient, I've committed a new function "ftest" in main/io, somewhat modelled after the bash "test" function. For example, to check that a regular file ./script.sh exists and is readable and executable to the current user, one does: ftest('./script.sh','f','rx')
regards, -- RNDr. Jaroslav Hajek computing expert Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev