isFileSync static method

bool isFileSync(
  1. String path
)

Synchronously checks whether path refers to a file.

Checks whether typeSync(path) returns FileSystemEntityType.file.

Implementation

static bool isFileSync(String path) =>
    (_getTypeSync(_toUtf8Array(path), true) == FileSystemEntityType.file);