typeSync method

FileSystemEntityType typeSync (String path, { bool followLinks: true })

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

Returns a FileSystemEntityType.

Returns FileSystemEntityType.link only if followLinks is false and if path points to a link.

Returns FileSystemEntityType.notFound if path does not point to a file system object or if any other error occurs in looking up the path.


static FileSystemEntityType typeSync(String path, {bool followLinks: true}) {
  return _getTypeSync(_toUtf8Array(path), followLinks);