Method Stdio.file_size()
- Method
file_size
intfile_size(stringfilename,bool|voiddo_not_follow_symlinks)- Description
Give the size of a file.
- Parameter
filename Path to file to check.
- Parameter
do_not_follow_symlinks Set this to
1to inhibit following of symlinks.- Returns
Returns one of:
(0..)A non-negative value is the length (aka size) of the regular file.
-1A size of
-1indicates that the file either does not exist, or that it is not readable by you.-2Size
-2indicates that it is a directory.-3-3means that it is a symlink. Note that this is only returned for broken symlinks unlessdo_not_follow_symlinksis1.-4filenameis a device node.- See also