isDirectory 静态方法

Future<bool> isDirectory(
  1. String path
)

判断path是否指向一个目录。

检查type(path)是否返回FileSystemEntityType.directory

实现

static Future<bool> isDirectory(String path) =>
    _getType(_toUtf8Array(path), true)
        .then((type) => (type == FileSystemEntityType.directory));