Function convertItemResourceToStorageResource

  • Generates a folder and filename for storing a copy of an item's resource in a storage item.

    Parameters

    • prefix: string

      Base prefix for resource

    • sourceResourceFilename: string

      Either filename or folder/filename to resource

    • storageVersion: number = 0

      Version of the Solution template

    • Optional storageFileType: SolutionResourceType

      Optional argument that when supplied will control the how the prefix is created

    Returns {
        filename: string;
        folder: string;
    }

    Folder and filename for storage; folder is the itemID plus ("" + storageFolder) if storageFolder exists plus ("" + part of sourceResourceFilename before "/" if that separator exists); file is sourceResourceFilename

    • filename: string
    • folder: string

    See

    convertStorageResourceToItemResource