curl-library
Is there a CURLOPT_DIRLISTONLY option for SFTP?
Date: Mon, 28 Jun 2010 14:57:50 -0400
I'm trying get a list of files only from a UNIX machine VIA SFTP. I'm
using NLST in the CURLOPT_CUSTOMREQUEST option. I'm running this from
Perl. When a get the list back it has "." (dot) and ".."(dotdot) as
part of the list. Subdirectories are also included in the list. When I
use FTP in place of SFTP everything works fine - I get back only the
files. Is there a way to get back only the files and not the
Subdirectories with SFTP?
Thanks, Tony
----------------------------------------------------------------------------
This message and any included attachments are from Siemens Medical Solutions
and are intended only for the addressee(s).
The information contained herein may include trade secrets or privileged or
otherwise confidential information. Unauthorized review, forwarding, printing,
copying, distributing, or using such information is strictly prohibited and may
be unlawful. If you received this message in error, or have reason to believe
you are not authorized to receive it, please promptly delete this message and
notify the sender by e-mail with a copy to Central.SecurityOffice_at_siemens.com
Thank you
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-06-28