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() =>
    isWindows ? WindowsPath(_string).isFileSync() : UnixPath(_string).isFileSync();