Quantcast
Channel: Rebex Q&A Forum - Recent questions and answers
Viewing all articles
Browse latest Browse all 3902

How can i list my cloud folder in sftp server?

$
0
0

Hi, im trying to list cloud folders and files in sftp server. In ftp server when LIST command came to server i make an api call to cloud retrieve list of folders and files and forward to client. How can i do that in rebex sftp server while i cannot intervene client's get list request?

Here is the ftp code;

switch (cmd)
{
   case "USER":
     response = User(arguments);
      break;
   case "PASS":
      response = Password(arguments);
      break;
   case "CWD":
       response = ChangeWorkingDirectory(arguments);
       break;
case "LIST":
    response = List(arguments ?? _currentDirectory);
    break;
}

I can catch the command's from client like this code in ftp, how can i do that in rebex sftp library? If i cant do that is it possible to show cloud folder and files to client?


Viewing all articles
Browse latest Browse all 3902

Latest Images

Trending Articles



Latest Images