import { AbstractSession , IHandlerParameters } from "@zowe/imperative" ; import { List , IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk" ; import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler" ; param { IHandlerParameters } params export default class USSFileHandler extends ZosFilesBaseHandler { public async processWithSession ( commandParameters , session ) { const response = await List . fileList ( session , commandParameters . arguments . path , { maxLength : commandParameters . arguments . maxLength , responseTimeout : commandParameters . arguments . responseTimeout } ) ; commandParameters . response . data . setObj ( response ) ; commandParameters . response . data . setMessage ( `Returned list of UNIX files and directories in path "${ commandParameters . arguments . path }"` ) ; commandParameters . response . format . output ( { fields : [ "name" , "mode" , "size" , "uid" , "user" ] , output : response . apiResponse . items , format : "table" } ) ; return response ; } }