Name
filetype
Synopsis
string filetype(string path)
Returns the type of file given in path.
The possible types are:
|
|
The file is a fifo pipe. |
|
|
The file is a text file. |
|
|
|
|
|
A block reserved for use by the filesystem. |
|
|
The file is a symbolic link. |
|
|
The file contains binary data. |
|
|
The file’s type could not be determined. |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access