Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / operations/code / fileToCartridgePath

Function: fileToCartridgePath()

fileToCartridgePath(absolutePath, cartridges): FileChange | undefined

Defined in: packages/b2c-tooling-sdk/src/operations/code/upload-files.ts:44

Maps an absolute file path to its cartridge-relative destination.

Parameters

absolutePath

string

The absolute path to a file

cartridges

CartridgeMapping[]

The list of discovered cartridge mappings

Returns

FileChange | undefined

The file change with src and dest, or undefined if the path is not inside any cartridge

Released under the Apache-2.0 License.