sftp disconnect all; sftp connect "session1" {cm get "demo_cm_sftp";}; if (is not empty "remoteDirectory_sftp") {sftp cd "session1" "remoteDirectory_sftp";}; -> "[result]" (sftp ls "session1" "*"); sftp disconnect "session1"; [result];
"[
{
\"name\": \"filename.txt\",
\"size\": \"255\",
\"isDir\": \"0\"
},
{
\"name\": \"doc\",
\"isDir\": \"1\"
}
]";