1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
5
<TITLE>fileinfo</TITLE>
6
<TYPE>Scilab Function</TYPE>
8
<SHORT_DESCRIPTION name="fileinfo"> Provides information about a file</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>[x,ierr]=fileinfo(file) </CALLING_SEQUENCE_ITEM>
15
<PARAM_NAME>file</PARAM_NAME>
17
<SP>: a character string, the file pathname</SP>
21
<PARAM_NAME>x</PARAM_NAME>
23
<SP>: an integer vector of size 6 containing information or an empty matrix if file does not exist.</SP>
27
<PARAM_NAME>ierr</PARAM_NAME>
29
<SP>: error indicator, 0, if no error has occured</SP>
36
x=fileinfo(file) returns
39
<DESCRIPTION_ITEM label="x(1)">
40
<SP>: The file size</SP>
42
<DESCRIPTION_ITEM label="x(2)">
43
<SP>: The file mode</SP>
45
<DESCRIPTION_ITEM label="x(3)">
46
<SP>: The user id</SP>
48
<DESCRIPTION_ITEM label="x(4)">
49
<SP>: the group id</SP>
51
<DESCRIPTION_ITEM label="x(5)">
52
<SP>: The device number</SP>
54
<DESCRIPTION_ITEM label="x(6)">
55
<SP>: The date of last modification</SP>
57
<DESCRIPTION_ITEM label="x(7)">
58
<SP>: The date of last change</SP>
60
<DESCRIPTION_ITEM label="x(8)">
61
<SP>: The date of last access</SP>
63
<DESCRIPTION_ITEM label="x(9)">
64
<SP>: The device type (if inode device)</SP>
66
<DESCRIPTION_ITEM label="x(10)">
67
<SP>: The blocksize for filesystem I/O</SP>
69
<DESCRIPTION_ITEM label="x(11)">
70
<SP>: The number of blocks allocated</SP>
72
<DESCRIPTION_ITEM label="x(12)">
75
<DESCRIPTION_ITEM label="x(13)">
76
<SP>: The number of hard links</SP>
80
<SECTION label="Reference">
82
This function is an interface to the C function stat.</P>
86
w=fileinfo(SCI+'/scilab.star')
98
<LINK>dispfiles</LINK>
107
<AUTHOR>S. Steer INRIA</AUTHOR>