commandbox.system.modules_app.system-commands.commands

Class cp

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

Copy a file or directory. . Create a copy of sample.html in the current directory and call it test.html {code:bash} cp sample.html test.html {code} . Create a copy index.cfm in another directory with the same name {code:bash} cp index.cfm testing/index.cfm {code} . Create a copy of a directory {code:bash} cp foo/ bar/ {code}

Class Attributes:
  • aliases : copy
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    any run(commandbox.system.modules_app.system-commands.commands.Globber path, any newPath, [boolean recurse='false'], [string filter='*'])
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    run

    public any run(commandbox.system.modules_app.system-commands.commands.Globber path, any newPath, [boolean recurse='false'], [string filter='*'])

    Parameters:
    path - The file or directory source
    newPath - The new name file or directory location
    recurse - Include subdirectories as well.
    filter - A directory copy filter string that uses "*" as a wildcard, for example, "*.cfm"