Skip to content

Commit

Permalink
remove comment, add apiResponse
Browse files Browse the repository at this point in the history
Signed-off-by: jace-roell <[email protected]>
  • Loading branch information
jace-roell committed Dec 9, 2024
1 parent 6f098f3 commit 49ff82f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/zosfiles/src/methods/upload/Upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -897,7 +901,6 @@ export class Upload {
*/
private static get log(): Logger {
return Logger.getAppLogger();
// return Logger.getConsoleLogger();
}


Expand All @@ -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({
Expand Down

0 comments on commit 49ff82f

Please sign in to comment.