# SFTPApi

## get

Description...

```
SFTPApi.get(String server, String userName, String password, 
      String remoteFile, String localFile)    
or

SFTPApi.get(String server, int port, String userName, String password, 
      String remoteFile, String localFile)
```

#### Parameters

```
server
userName
password
remoteFile
localFile
port
```

#### Returns

```
Result
```

## put

Description...

```
SFTPApi.put(String server, String userName, String password, 
      String remoteFile, String localFile) 
or

SFTPApi.put(String server, int port, String userName, String password, 
      String remoteFile, String localFile)
```

#### Parameters

```
server
userName
password
remoteFile
localFile
port
```

#### Returns

```
Result
```

## ls

Description...

```
SFTPApi.ls(String server, String userName, String password, 
      String remoteFolder) {  
or

SFTPApi.ls(String server, int port, String userName, String password, 
      String remoteFolder)
or

SFTPApi.ls(String server, String userName, String password, 
      String remoteFolder, String extensions)
or

SFTPApi.ls(String server, int port, String userName, String password, 
      String remoteFolder, String extensions)

```

#### Parameters

```
server
userName
password
remoteFolder
port
extensions
```

#### Returns

```
Result
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://trillo.gitbook.io/trillo-workbench-java-sdk/sftpapi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
