isFileSync method

bool isFileSync()

Returns true if the path exists on disk and is pointing at a regular file. Does not follow links.

Implementation

bool isFileSync() => Env.isWindows
    ? WindowsPath(_string).isFileSync()
    : UnixPath(_string).isFileSync();