Scilab Reference Manual |
---|
fileinfo — Provides information about a file
[x,ierr]=fileinfo(file)
file | : a character string, the file pathname |
x | : an integer vector of size 6 containing information or an empty matrix if file does not exist. |
ierr | : error indicator, 0, if no error has occured |
x=fileinfo(file) returns
x(1) | : The file size |
x(2) | : The file mode |
x(3) | : The user id |
x(4) | : the group id |
x(5) | : The device number |
x(6) | : The date of last modification |
x(7) | : The date of last change |
x(8) | : The date of last access |
x(9) | : The device type (if inode device) |
x(10) | : The blocksize for filesystem I/O |
x(11) | : The number of blocks allocated |
x(12) | : The inode |
x(13) | : The number of hard links |
This function is an interface to the C function stat.
w=fileinfo(SCI+'/scilab.star') getdate(w(6))
S. Steer INRIA
<< disp | file >> |