description

# type method

Future<FileSystemEntityType> type (String path, { bool followLinks: true })

Finds the type of file system object that a path points to.

Returns a `Future<FileSystemEntityType>` that completes with the result.

FileSystemEntityType has the constant instances file, directory, link, and notFound. type will return link only if the optional named argument `followLinks` is false, and `path` points to a link. If the path does not point to a file system object, or any other error occurs in looking up the path, notFound is returned. The only error or exception that may be put on the returned future is ArgumentError, caused by passing the wrong type of arguments to the function.

## Implementation

    static Future<FileSystemEntityType> type(String path,
        {bool followLinks: true}) {
      return _getType(_toUtf8Array(path), followLinks);
    }