Skip to content

Commit

Permalink
Deprecate old file and directory upload/download methods in favor of …
Browse files Browse the repository at this point in the history
…new content methods

Signed-off-by: worksofliam <[email protected]>
  • Loading branch information
worksofliam committed Jan 13, 2025
1 parent 6fcb4d2 commit 1927af7
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions src/api/IBMi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -931,12 +931,12 @@ export default class IBMi {
resultSet.forEach(row => {
// Does not ever include SYSBAS/SYSTEM, only iASPs
if (row.DEVICE_DESCRIPTION_NAME && row.DEVICE_DESCRIPTION_NAME && row.DEVICE_DESCRIPTION_NAME !== `null`) {
this.iAspInfo[Number(row.ASP_NUMBER)] = {
this.iAspInfo.push({
id: Number(row.ASP_NUMBER),
name: String(row.DEVICE_DESCRIPTION_NAME),
type: String(row.ASP_TYPE),
rdbName: String(row.RDB_NAME)
};
});
}
});
} catch (e) {
Expand Down Expand Up @@ -1656,4 +1656,32 @@ export default class IBMi {
sshdCcsid: this.sshdCcsid
};
}

/**
* @deprecated Use {@link IBMiContent.uploadFiles} instead.
*/
uploadFiles(files: { local: string | vscode.Uri, remote: string }[], options?: node_ssh.SSHPutFilesOptions) {
return this.content.uploadFiles(files, options);
}

/**
* @deprecated Use {@link IBMiContent.downloadFiles} instead.
*/
async downloadFile(localFile: string | vscode.Uri, remoteFile: string) {
await this.content.downloadFile(localFile, remoteFile);
}

/**
* @deprecated Use {@link IBMiContent.uploadDirectory} instead.
*/
async uploadDirectory(localDirectory: string | vscode.Uri, remoteDirectory: string, options?: node_ssh.SSHGetPutDirectoryOptions) {
await this.content.uploadDirectory(localDirectory, remoteDirectory, options);
}

/**
* @deprecated Use {@link IBMiContent.downloadDirectory} instead.
*/
async downloadDirectory(localDirectory: string | vscode.Uri, remoteDirectory: string, options?: node_ssh.SSHGetPutDirectoryOptions) {
await this.content.downloadDirectory(localDirectory, remoteDirectory, options);
}
}

0 comments on commit 1927af7

Please sign in to comment.