Hello,
I am trying to get files from an SFTP server. Because I need to write log for each file, I get one file at a time. Below is about my steps:
- pub.client.sftp:ls
(to find how many files would be download)
(for the service, we will get a list “dirList”)
- loop /dirList:
- pub.client.sftp:get
- write log
…
When I do “pub.client.sftp:ls”, I will get name of both files and directories. However,“pub.client.sftp:get” cannot get directory and will return an error instead.
How can I distinguish the file or directory? There is a parameter “permission” in dirList. Could I use “permission” to do that?
Thank you very much!
webMethods IS version: 10.3.0.0
Java Version: 1.8.0_202 (52.0)
Maggie
#webMethods#Integration-Server-and-ESB#swebmethods-Protocol-and-Transport