Innov-AI
    Documentation | MentDB Weak Server
List a folder from a sFTP connection

  • To list a folder from a sFTP connection:
  • Double click on your remote directory 'remoteDirectory_sftp'
  • 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\"
      }
    ]";
  • Load the JSON and parse it to get data...
Services     Supporters     Contact     About     Legal notice © 2024