lucee.Componentcommandbox.system.modules_app.system-commands.commands.pathExists
Returns a passing (0) or failing (1) exit code whether the path exists. Command outputs nothing. . {code:bash} pathExists box.json && package show {code} . You can specify if the path needs to be a file or a folder. . {code:bash} pathExists --file server.json && server show pathExists --directory foo || mkdir foo {code}
Method Summary | |
---|---|
any
|
run([string thePath=''], [boolean file='false'], [boolean directory='false'])
|
Methods inherited from class lucee.Component |
---|
None |
Method Detail |
---|
thePath
- The path to checkfile
- Validate that the path is a filedirectory
- Validate that the path is a directory