File types
By using the following predicates, you can easily ask for the type of file.
file types | Description |
---|---|
is_block_file |
Checks if the path refers to a block file. |
is_character_file |
Checks if the path refers to a character file. |
is_directory |
Checks if the path refers to a directory. |
is_empty |
Checks if the path refers to an empty file or directory. |
is_fifo |
Checks if the path refers to a named pipe. |
is_other |
Checks if the path refers to another file. |
is_regular_file |
Checks if the path refers to a regular file. |
is_socket |
Checks if the path refers to an IPC socket. |
is_symlink |
Checks if the path refers to a symbolic link. |
status_known |
Checks if the file status... |