🔵 🔵 🔵


Primary

၊၊||၊|။

Path.is_file() ⚬|Documentation|1st|20260130114848-00-⌔

pathlib — Object-oriented filesystem paths — Python 3.14.2 documentation#pathlib.Path.is_file

Path.is_file(﹡, follow_symlinks=True)

Return True if the path points to a regular file. False will be returned if the path is invalid, inaccessible or missing, or if it points to something other than a regular file. Use Path.stat() to distinguish between these cases.

This method normally follows symlinks; to exclude symlinks, add the argument follow_symlinks=False.

Changed in version 3.13: The follow_symlinks parameter was added.

Printed 2026-06-28.

(echo:: @ )

Link to original

Secondary

• • •