copy_with_opts

copy_with_opts(a_destination, opts)

Copy the item to specified location with options.

By passing options (a value of a record) as a second parameter, you can change the behavior of copying.The format of the option record is {with_replaceing : boolean, with_admin:boolean, with_replacing: boolean}. You can ommit labels you don't required.

Parameters
Result

script object : a XFile instance referencing copied item.