llm
Download
37 lines 745 BGroffModified 2026-09-01 raw
12345678910111213141516171819202122232425262728293031323334353637
'\" t
.\" Copyright (c) 2026 Bruce Hill
.\" All rights reserved.
.\"
.TH Path.is_file 3 2026-09-01 "Tomo man-pages"
.SH NAME
Path.is_file \- check if a path is a file
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Path.is_file\ :\ func(path:\ Path,\ follow_symlinks:\ Bool\ =\ yes\ ->\ Bool)
.fi
.SH DESCRIPTION
Checks if the path represents a file. Optionally follows symbolic links.


.SH ARGUMENTS

.TS
allbox;
lb lb lbx lb
l l l l.
Name	Type	Description	Default
path	Path	The path to check. 	-
follow_symlinks	Bool	Whether to follow symbolic links. 	yes
.TE
.SH RETURN
`yes` if the path is a file, otherwise `no`.

.SH EXAMPLES
.EX
assert (./file.txt).is_file()
assert not (./directory/).is_file()
.EE
.SH SEE ALSO
.BR Tomo-Path (3)