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.
- with_replacing : Copying with replacing the destination. The default is true.
- with_admin : Copying with administrator privileges. The default is false.
- with_removing : Copying after removing the destination. The default is false.
Parameters
- a_destination (script object) : a XFile instance referencing the copy destination or a relative path.
- opts ( record): a XFile instance referencing the copy destination.
Result
script object : a XFile instance referencing copied item.