references/sleep-functions/pr_isFile.md

GitHub

pr_isFile

Category: FileSystem

Source: https://sleep.dashnine.org/manual/pr_isFile.html


Synopsis

-isFile "file"

A predicate to check if a file is a file (i.e. not a directory)

Parameters

"file" - the file to check.

Returns

True or false and this operator is only usable in a comparison context.

Examples

Example:

if (-isFile "/tmp")
{
println("wth?!?");
}

See Also

-exists; -isDir; -isHidden; &lof