Name | Type | Required | Default | Hint |
path | string | true | The file or directory source | |
newPath | string | true | The new name file or directory location | |
recurse | boolean | false | false | If true, copies the subdirectories, otherwise only the files in the source directory. |
filter | string | false | * | A directory copy filter string that uses "*" as a wildcard, for example, "*.cfm" |
Copy a file or directory.
Create a copy of sample.html in the current directory and call it test.html
cp sample.html test.htmlCreate a copy index.cfm in another directory with the same name
cp index.cfm testing/index.cfmCreate a copy of a directory
cp foo/ bar/