Method Stdio.is_dir()


Method is_dir

int is_dir(string path, bool|void no_symlinks)

Description

Check if a path is a directory.

Parameter path

Path to check.

Parameter no_symlinks

Return 0 also if path is a symlink to a directory.

Returns

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

See also

exist(), is_file(), is_link(), file_stat()