isDirectory method

Future<bool> isDirectory (String path)

Checks if type(path) returns FileSystemEntityType.DIRECTORY.

Implementation

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