Method Stdio.is_file()


Method is_file

int is_file(string path, bool|void no_symlinks)

Description

Check if a path is a regular file.

Parameter path

Path to check.

Parameter no_symlinks

Return 0 also if path is a symlink to a regular file.

Returns

Returns true if the given path is a regular file, otherwise false.

See also

exist(), is_dir(), is_link(), file_stat()