From 49ff82f473ed06ed3701a4b9c167b3fcdc16e961 Mon Sep 17 00:00:00 2001 From: jace-roell Date: Mon, 9 Dec 2024 09:50:40 -0500 Subject: [PATCH] remove comment, add apiResponse Signed-off-by: jace-roell --- packages/zosfiles/src/methods/upload/Upload.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/zosfiles/src/methods/upload/Upload.ts b/packages/zosfiles/src/methods/upload/Upload.ts index 02c4cc57a..a7311da3e 100644 --- a/packages/zosfiles/src/methods/upload/Upload.ts +++ b/packages/zosfiles/src/methods/upload/Upload.ts @@ -481,7 +481,11 @@ export class Upload { const uploadRequest: IRestClientResponse = await ZosmfRestClient.putExpectFullResponse(session, requestOptions); // By default, apiResponse is empty when uploading - const apiResponse: any = {}; + const apiResponse: any = { + success: true, + buffer: fileBuffer, + to: ussname + };; // Return Etag in apiResponse, if requested if (options.returnEtag) { @@ -897,7 +901,6 @@ export class Upload { */ private static get log(): Logger { return Logger.getAppLogger(); - // return Logger.getConsoleLogger(); } @@ -922,7 +925,6 @@ export class Upload { const response: IUploadDir[] = []; if (Upload.hasDirs(dirPath)) { const directories = fs.readdirSync(dirPath).filter((file) => IO.isDir(path.normalize(path.join(dirPath, file)))); - // directories = directories.filter((file) => IO.isDir(path.normalize(path.join(dirPath, file)))); for (let index = 0; index < directories.length; index++) { const dirFullPath = path.normalize(path.join(dirPath, directories[index])); response.push({