cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SFTP delete file with space

From: Michael Wood <esiotrot_at_gmail.com>
Date: Fri, 18 May 2012 17:07:38 +0200

Hi

On 18 May 2012 14:22, Anders Havn <anders.havn_at_gmail.com> wrote:
> Hi again,
>
> I solved the problem by adding quotation signs around the name and
> encoding the full filePath:
> NSString* fullFilePath = @"ftp://myftpserver.org/UserFolder/Test%20xyz.txt";
> NSString* filePath = @"rm \"/UserFolder/Test xyz.txt\"";

I think you should also be able to use something like this:

NSString* fullFilePath = @"sftp://myftpserver.org/";
NSString* filePath = @"rm \"/UserFolder/Test xyz.txt\"";

-- 
Michael Wood <esiotrot_at_gmail.com>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-18