commandbox.system.modules_app.system-commands.commands

Class mv

lucee.Component
    extended by commandbox.system.modules_app.system-commands.commands.mv

Rename/move a file or directory to a new name and path . Rename a file {code:bash} mv sample.html sample.htm {code} . Move a file {code:bash} mv sample.html /test/sample.htm {code} . Rename a directory {code:bash} mv foo/ bar/ {code} . Move a directory {code:bash} mv foo/ bar/foo/ {code}

Class Attributes:
  • aliases : rename
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    any run(commandbox.system.modules_app.system-commands.commands.Globber path, any newPath)
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    run

    public any run(commandbox.system.modules_app.system-commands.commands.Globber path, any newPath)

    Parameters:
    path - The file or directory source to rename
    newPath - The new name of the file or directory