Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Stdio

Method Stdio.exist()


Method exist

int exist(string path)

Description

Check if a path exists.

Returns

Returns true if the given path exists (is a directory or file), otherwise false.

Note

May fail with eg errno() EFBIG if the file exists, but the filesystem doesn't support the file size.

See also

is_dir() , is_file() , is_link() , file_stat()