Whether the file is a regular file. See type.
bool get isDirectory => mode?.type == SftpFileType.directory;