Movatterモバイル変換


[0]ホーム

URL:


CFEngine documentation homepage

isplain

Suggest changes
Table of contents

Prototype:isplain(filename)

Return type:boolean

Description: Returns whether the named objectfilename is aplain/regular file.

Arguments:

  • filename:string - File object name - in the range:"?(/.*)

Example:

code
bodycommoncontrol{bundlesequence=>{"example"};}bundleagentexample{classes:"fileisplain"expression=>isplain("/etc/passwd");"dirisnotplain"not=>isplain("/");reports:fileisplain::"/etc/passwd is plain..";dirisnotplain::"/ is not plain..";}

Output:

code
R: /etc/passwd is plain..R: / is not plain..

See also:fileexists(),filestat(),isdir(),islink(),returnszero()

Still need help?

Chat Ask a question on Github Mailing list
Version 
master3.24 (LTS)3.21 (LTS)view all versions

[8]ページ先頭

©2009-2025 Movatter.jp