• Copies the files described by a list of full URLs and storage folder/filename combinations for storing the resources, metadata, and thumbnail of an item or group to a storage item with different handling based on the type of file.

    Parameters

    • fileInfos: IAssociatedFileInfo[]

      List of item files' URLs and folder/filenames for storing the files

    • sourceAuthentication: UserSession

      Credentials for the request to the source

    • sourceItemId: string

      Id of item supplying resource/metadata

    • destinationItemId: string

      Id of item to receive copy of resource/metadata/thumbnail

    • destinationAuthentication: UserSession

      Credentials for the request to the storage

    • template: any = {}

      Description of item that will receive files

    • templateDictionary: any = {}

      Hash of facts: org URL, adlib replacements, deferreds for dependencies

    Returns Promise<IAssociatedFileCopyResults[]>

    A promise which resolves to a list of the result of the copies