fix(core): Restrict read/write file paths access (#6582)

This commit is contained in:
Michael Kret
2023-07-31 15:20:39 +03:00
committed by GitHub
parent 7cd45885bf
commit f6bf9e9887
8 changed files with 141 additions and 18 deletions

View File

@@ -672,6 +672,11 @@ interface JsonHelperFunctions {
export interface FileSystemHelperFunctions {
createReadStream(path: PathLike): Promise<Readable>;
getStoragePath(): string;
writeContentToFile(
path: PathLike,
content: string | Buffer | Readable,
flag?: string,
): Promise<void>;
}
export interface BinaryHelperFunctions {