Path.isMount

bool isMount() const

Returns true if the path is a mount point.

On POSIX, this is true if the path is a device mount point (its device ID differs from its parent, or it is the root). On Windows, this is true if the path is a drive root (e.g., C:\) or a UNC root (e.g., \\server\share).

Inspired by Python's pathlib.Path.is_mount.

Returns

true if the path is a mount point, false otherwise.