isfile
isfile checks whether a given path exists and refers to a file.
This function is useful when validating input, confirming file existence before reading, or filtering entries returned by listfiles.
Parameters
| Parameter | Description |
|---|---|
path |
The path to check. |