Method file_stat()
- Method
file_stat
Stdio.Statfile_stat(stringpath,void|boolsymlink)- Description
Stat a file.
If the argument
symlinkis1symlinks will not be followed.- Returns
If the path specified by
pathdoesn't exist0(zero) will be returned.Otherwise an object describing the properties of
pathwill be returned.- Note
In Pike 7.0 and earlier this function returned an array with 7 elements. The old behaviour can be simulated with the following function:
array(int) file_stat(string path, void|int(0..1) symlink) { File.Stat st = predef::file_stat(path, symlink); if (!st) return 0; return (array(int))st; }- See also
Stdio.Stat,
Stdio.File->stat()