isFile method

Future<bool> isFile()

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

Implementation

Future<bool> isFile() => isWindows ? WindowsPath(_string).isFile() : UnixPath(_string).isFile();