diff --git a/libraries/node-core-library/src/FileSystem.ts b/libraries/node-core-library/src/FileSystem.ts index dbe8d36f95f..deabc1805cd 100644 --- a/libraries/node-core-library/src/FileSystem.ts +++ b/libraries/node-core-library/src/FileSystem.ts @@ -1027,7 +1027,7 @@ export class FileSystem { const sourceStream: fs.ReadStream = fsx.createReadStream(options.sourcePath); const uniqueDestinationPaths: Set = new Set(options.destinationPaths); const pipePromises: Promise[] = []; - for (const destinationPath of uniqueDestinationPaths.values()) { + for (const destinationPath of uniqueDestinationPaths) { pipePromises.push(createPipePromise(sourceStream, destinationPath)); }