SFTP File List
1 min
Gives you a list of files as a JSON List from a defined SFTP locations.
API Definition
SFTP File List API
Call the following API:
POST
https://orca.pathfix.com/functions/web/sftplist
json
{
"input": {
"user_name": "username",
"password": "password",
"directory_path": "ftp://domain.com:22/folder/subfolder"
}
}200
{
"output": [
{
"name": "textfile.txt",
"path": "/folder/subfolder/textfile.txt",
"last_write": 133101237610000000
},
{
"name": "datafile.dat",
"path": "/folder/subfolder/datafile.dat",
"last_write": 133101249210000000
}
]
}404
{
"message": "error"
}