Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I'm using an SFTP Connector as a client to transfer files to/from an SFTP Remote Server. I've been using successfully the following code to move files between folders in the Remote Server:

            var request = StartRemoteMoveRequest.builder()
                    .connectorId(connectorId)
                    .sourcePath(sourcePath)
                    .targetPath(targetPath)
                    .build();

            var response = transferClient.startRemoteMove(request);
            var moveId = response.moveId();

The code works and the moveId variable is populated with a unique ID (e.g. 7261e15d-3e46-4e02-8a6a-fc44f86c56af)

I expect to use the ID above to monitor the completion of the move operation, as StartRemoteMoveRequest is asynchronous, so it just instruct the SFTP Connector to initiate the move, it doesn't guarantee success.
How can I do that?

P.S. I'm hoping to find something similar to the following:

                var resultRequest = ListFileTransferResultsRequest.builder()
                        .connectorId(connectorId)
                        .transferId(transferId)
                        .build();

                var resultResponse = transferClient.listFileTransferResults(resultRequest);

which is used to monitor the completion of a file transfer initiated by:

           var request = StartFileTransferRequest.builder()
                    .connectorId(connectorId)
                    .sendFilePaths(s3File)
                    .remoteDirectoryPath(remoteDir)
                    .build();

            var response = transferClient.startFileTransfer(request);
            var transferId = response.transferId();
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.