ID EN
OS

is_file

Python 3.11

Return True if this entry is a file or a symbolic link pointing to a file; return False if the entry is or points to a directory or other non-file entry, or if it doesn’t exist anymore.

Syntax

PYTHON
is_file(*, follow_symlinks=True)

See Also

is_dir()