isFile property
bool
get
isFile
The read-only isFile
property of
the FileSystemEntry interface is true
if the entry
represents a file (meaning it's a FileSystemFileEntry) and
false
if it's not.
You can also use FileSystemEntry.isDirectory to determine if the entry is a directory.
Warning: You should not assume that any entry which isn't a file is a directory or vice versa. There are other types of file descriptors on many operating systems. Be sure to use both
isDirectory
andisFile
as needed to ensure that the entry is something you know how to work with.
Implementation
external bool get isFile;