isDirectorySync static method

bool isDirectorySync(
  1. String path
)

Synchronously checks whether path refers to a directory.

Checks whether typeSync(path) returns FileSystemEntityType.directory.

Implementation

static bool isDirectorySync(String path) =>
    (_getTypeSync(_toUtf8Array(path), true) ==
        FileSystemEntityType.directory);