Skip to content

ICopyOptions

Steve edited this page Apr 29, 2020 · 1 revision

interface ICopyOptions extends IHTTPOptions

export interface ICopyOptions extends IHTTPOptions {
    overwrite?: boolean,
    fnRename?: (entry: IListEntry, subPath:string, tries:number) => string,
    autoRename?: boolean,
    autoRenameRetries?: number
}
  • overwrite: overwrite existing files
  • fnRename: optional function to rename entries e.g. if the file exists in target path e.g. by adding "copy" + tries to the file name
  • autoRename: rename files if they already exist in target path
  • autoRenameRetries: maximum number of tries to rename existing entries
Clone this wiki locally