login about faq

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

asked Jun 09 at 10:13

grunon's gravatar image

grunon
52

edited Jun 09 at 10:58

jpbro's gravatar image

jpbro ♦
1.1k2618


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

link

answered Jun 24 at 07:53

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

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

link

answered Jun 09 at 13:48

cdlvj130's gravatar image

cdlvj130
9691017

If I quote the pathes I get this error at the first entry of the path list. And this entry has no spaces.

(Jun 10 at 00:34) grunon

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?

link

answered Jun 10 at 00:32

grunon's gravatar image

grunon
52

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.

link

answered Jun 24 at 02:52

grunon's gravatar image

grunon
52

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×200

Asked: Jun 09 at 10:13

Seen: 368 times

Last updated: Jun 24 at 07:53

powered by OSQA