Skip to content

Commit

Permalink
Deprecate upload and download methods in IBMi class, recommending alt…
Browse files Browse the repository at this point in the history
…ernatives

Signed-off-by: worksofliam <[email protected]>
  • Loading branch information
worksofliam committed Feb 5, 2025
1 parent 3d6f70e commit 5e13737
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/api/IBMi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { ConnectionManager } from './configuration/config/ConnectionManager';
import { CommandData, CommandResult, ConnectionData, IBMiMember, RemoteCommand, WrapResult } from './types';
import { EventEmitter } from 'stream';
import { ConnectionConfig } from './configuration/config/types';
import { EditorPath } from '../typings';

export interface MemberParts extends IBMiMember {
basename: string
Expand Down Expand Up @@ -1432,4 +1433,32 @@ export default class IBMi {
debugPTFInstalled() {
return this.remoteFeatures[`startDebugService.sh`] !== undefined;
}

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

/**
* @deprecated Use {@link IBMiContent.downloadFiles} instead.
*/
downloadFile(localFile: EditorPath, remoteFile: string) {
return this.content.downloadFile(localFile, remoteFile);
}

/**
* @deprecated Use {@link IBMiContent.uploadDirectory} instead.
*/
uploadDirectory(localDirectory: EditorPath, remoteDirectory: string, options?: node_ssh.SSHGetPutDirectoryOptions) {
return this.content.uploadDirectory(localDirectory, remoteDirectory, options);
}

/**
* @deprecated Use {@link IBMiContent.downloadDirectory} instead.
*/
downloadDirectory(localDirectory: EditorPath, remoteDirectory: string, options?: node_ssh.SSHGetPutDirectoryOptions) {
return this.content.downloadDirectory(localDirectory, remoteDirectory, options);
}
}

0 comments on commit 5e13737

Please sign in to comment.