lucee.Componentcommandbox.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}
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 |
---|
path
- The file or directory sourcenewPath
- The new name file or directory locationrecurse
- Include subdirectories as well.filter
- A directory copy filter string that uses "*" as a wildcard, for example, "*.cfm"