From: Vincent COUVERT Date: Wed, 27 May 2015 13:27:16 +0000 (+0200) Subject: * fileinfo can now take a row vector as input. X-Git-Tag: 6.0.0-alpha-1~239 X-Git-Url: http://gitweb.scilab.org/?p=scilab.git;a=commitdiff_plain;h=4d360286cb1c1a7de4be3309916917e556be3d0e * fileinfo can now take a row vector as input. Change-Id: Ice354cbef05e11f4ddb8bfbc8ad8826f7734dd9c --- diff --git a/scilab/CHANGES_6.0.X b/scilab/CHANGES_6.0.X index d49841d..6f65cc1 100644 --- a/scilab/CHANGES_6.0.X +++ b/scilab/CHANGES_6.0.X @@ -21,6 +21,8 @@ File input/output * mclearerr now returns a flag indicating the file identifier validity. +* fileinfo can now take a row vector as input. + Removed functions (previously declared as obsolete) ==================================================== diff --git a/scilab/modules/fileio/help/en_US/fileinfo.xml b/scilab/modules/fileio/help/en_US/fileinfo.xml index 8d18b20..f90960b 100644 --- a/scilab/modules/fileio/help/en_US/fileinfo.xml +++ b/scilab/modules/fileio/help/en_US/fileinfo.xml @@ -2,11 +2,11 @@ @@ -25,25 +25,22 @@ files - a character string or a string column vector, file - pathname. + + a character string or a string vector, file pathname. x - an integer vector of size 13 containing information or an - empty matrix if file does not exist. + + an integer vector of size 13 containing information or an empty matrix if file does not exist. - If files is a string column vector, x will be a matrix of - size m x 13. + If files is a string 1 x m or m x 1 vector, x will be a matrix of size m x 13. - If a filename does not exist, it will return as output - information a line of size 13 with Nan - in each element of this line. + If a filename does not exist, it will return as output information a line of size 13 with Nan in each element of this line. @@ -222,4 +219,15 @@ FILES = [SCI;SCIHOME;'not_exist_file';TMPDIR] + + History + + + 6.0.0 + + files can now be a row vector. + + + + diff --git a/scilab/modules/fileio/tests/unit_tests/fileinfo.dia.ref b/scilab/modules/fileio/tests/unit_tests/fileinfo.dia.ref index eecebc7..cb8c945 100644 --- a/scilab/modules/fileio/tests/unit_tests/fileinfo.dia.ref +++ b/scilab/modules/fileio/tests/unit_tests/fileinfo.dia.ref @@ -12,7 +12,7 @@ if size(x,"*") <> 13 then bugmes();quit;end if err == 0 then bugmes();quit;end if x <> [] then bugmes();quit;end ierr = execstr("fileinfo([SCI,SCIHOME])","errcatch"); -if ierr <> 999 then bugmes();quit;end +if ierr <> 0 then bugmes();quit;end FILES = [SCI;"My_file_not_exist";SCIHOME;TMPDIR]; [X,ERRS] = fileinfo(FILES); if or(isnan(X(1,:))) then bugmes();quit;end diff --git a/scilab/modules/fileio/tests/unit_tests/fileinfo.tst b/scilab/modules/fileio/tests/unit_tests/fileinfo.tst index df4908d0..9cfdc39 100644 --- a/scilab/modules/fileio/tests/unit_tests/fileinfo.tst +++ b/scilab/modules/fileio/tests/unit_tests/fileinfo.tst @@ -16,7 +16,7 @@ if err == 0 then pause,end if x <> [] then pause,end ierr = execstr("fileinfo([SCI,SCIHOME])","errcatch"); -if ierr <> 999 then pause,end +if ierr <> 0 then pause,end FILES = [SCI;"My_file_not_exist";SCIHOME;TMPDIR]; [X,ERRS] = fileinfo(FILES);