commandbox.system.modules_app.system-commands.commands

Class pathExists

lucee.Component
    extended by commandbox.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}

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    any run([string thePath=''], [boolean file='false'], [boolean directory='false'])
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    run

    public any run([string thePath=''], [boolean file='false'], [boolean directory='false'])

    Parameters:
    thePath - The path to check
    file - Validate that the path is a file
    directory - Validate that the path is a directory