I have written a function that pipe data to a new file, my function returns a promise.
async pipeToNewFile(fileData: string): Promise { const