(37 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Path.can_execute 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 Path.can_execute \- check execute permissions8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Path.can_execute\ :\ func(path:\ Path\ ->\ Bool)13 .fi14 .SH DESCRIPTION15 Returns whether or not a file can be executed by the current user/group.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 path Path The path of the file to check.26 .TE27 .SH RETURN28 `yes` if the file or directory exists and the current user has execute permissions, otherwise `no`.30 .SH EXAMPLES31 .EX32 assert (/bin/sh).can_execute() == yes33 assert (/usr/include/stdlib.h).can_execute() == no34 assert (/non/existant/file).can_execute() == no35 .EE36 .SH SEE ALSO37 .BR Tomo-Path (3)