klyn.io.Path.isFile
property
public native readonly property isFile as Boolean
Description

Returns true if the path exists and is a regular file. Symbolic links to existing regular files are followed.

Returns

Whether the target is a regular file, rather than a directory or another filesystem object.

Example
import klyn.io

path = FilePath("notes.txt")
if path.isFile:
    print(path.size)