isDirectory method

Future<bool> isDirectory (String path)

Checks if type(path) returns FileSystemEntityType.directory.

Implementation

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