fs.is_file

fs.is_file

fs.is_file

Function

Determine whether the path is an ordinary file.

Syntax

Parameters

No parameters.

Return value

TypeDescription
BoolReturns true if it is a normal file, otherwise it returns false.

Example

Notes

  • Returns false if the path does not exist.