Skip to content

Commit

Permalink
updates to code
Browse files Browse the repository at this point in the history
Signed-off-by: Pujal <[email protected]>
  • Loading branch information
pujal0909 committed Feb 5, 2025
1 parent bc51780 commit 059e305
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/zosfiles/src/methods/copy/Copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,8 @@ export class Copy {
for (const file of uploadFileList) {
const memName = ZosFilesUtils.generateMemberName(file);
const uploadingDsn = `${toPds}(${memName})`;
try {
const uploadStream = IO.createReadStream(file);
await Upload.streamToDataSet(session, uploadStream, uploadingDsn);
}
catch(error) {
Logger.getAppLogger().error(error);
throw error;
}
const uploadStream = IO.createReadStream(file);
await Upload.streamToDataSet(session, uploadStream, uploadingDsn);
}
fs.rmSync(downloadDir, {recursive: true});
return {
Expand Down

0 comments on commit 059e305

Please sign in to comment.