Archived Forum Post

Index of archived forum posts

Question:

sFTP Error on openDir FXP_OPENDIR

Jun 24 '16 at 07:53

Hi.

I crawl with sFTP a Directory and get this Error:

ChilkatLog:
 OpenDir:
 DllDate: Mar 12 2016 
 ChilkatVersion: 9.5.0.56
 UnlockPrefix: XXXXXXX
 Architecture: Little Endian;
 64-bit Language: MAC OS X PHP
 VerboseLogging: 0
 SshVersion: SSH-2.0-OpenSSH_6.9
 SftpVersion: 3
 openDir: path: /Users/xyz/test/Go3/01 Das Unternehmen/01.03 Leistungsspektrum/ auto
 AdjustedPath: /Users/xyz/test/Go3/01 Das Unternehmen/01.03 Leistungsspektrum
 Sent FXP_OPENDIR
 StatusResponseFromServer:
 Request: FXP_OPENDIR
 InformationReceivedFromServer:
 StatusCode: 4
 StatusMessage: Failure 
 --InformationReceivedFromServer
 --StatusResponseFromServer
 --openDir Failed.
 --OpenDir
 --ChilkatLog

I have on tests set all the Rights on the directories to 777. But this would not help.

Any Idea?

Thanks. Grunon


Accepted Answer

Thanks for letting us know! I really appreciate it. :-)


Answer

You have spaces in the path, Need to quote that path.


Answer

HI.

Thank you for your answer. But I think, that can not be. sFTP has before read this directory, read many other directories with spaces without this error.

Can it be, that there is any problem with caching in CKSFTP?


Answer

I've found the problem.

I had not set the utf-8 flags

  $sftp->put_FilenameCharset("UTF-8");

  $sftp->put_Utf8(true);

After adding this lines the code runs fine.