Using tsNet for sftp directory file listing

Richard Gaskin ambassador at fourthworld.com
Fri Oct 28 17:52:48 EDT 2016


Skip Kimpel wrote:

 > Can anybody guide me in getting a file listing from a remote
 > directory via SFTP connection?  I currently have tsNet functioning
 > to make the connection and uploading / downloading an individual
 > file.  However, I need to retrieve a list of files sitting in a
 > directory.

It's been a while since I've used FTP, but IIRC in previous versions you 
could just use "get" on a directory and it'll return the file list (note 
that the trailing "/" is important to let libURL know it's dealing with 
a directory):

   get url "ftp://name:pass@server/folder/"

Has that changed?

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list