deserializeDirectoryContents()
Home > @backstage/plugin-scaffolder-node > deserializeDirectoryContents
Deserializes a list of serialized files into the target directory.
This method uses resolveSafeChildPath to make sure that files are not written outside of the target directory.
Signature:
function deserializeDirectoryContents(targetPath: string, files: SerializedFile[]): Promise<void>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
targetPath |
string | |
|
files |
Promise<void>