isFile 静态方法
- String path
判断 path 是否指向一个文件。
检查 type(path) 是否返回 FileSystemEntityType.file。
实现
static Future<bool> isFile(String path) => _getType(_toUtf8Array(path), true)
.then((type) => (type == FileSystemEntityType.file));
判断 path 是否指向一个文件。
检查 type(path) 是否返回 FileSystemEntityType.file。
static Future<bool> isFile(String path) => _getType(_toUtf8Array(path), true)
.then((type) => (type == FileSystemEntityType.file));