pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]
Stdio

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()

Module reference for Pike v7.8 release 116, 2008-12-31