login about faq

Hello,

i have a working sftp connection to the server. When i try to create the directory

sftp.CreateDir('/SYM/B')

it fails.

I am able to connect via console remotely and create the directory, if a follow these steps:

1. connect
2. cd 'SYM'
3. mkdir 'B'

whereas:

1. connect
2. mkdir 'SYM/B'

fails. which is the correct way to achieve a successful creation of the directory with the component?

ChilkatLog:
  CreateDir:
    DllDate: Dec 27 2016
    ChilkatVersion: 9.5.0.65
    UnlockPrefix: AVLCOMSSH
    Architecture: Little Endian; 64-bit
    Language: .NET 4.6 / x64
    VerboseLogging: 0
    SshVersion: SSH-1.99-Data ONTAP SSH 1.0
    SftpVersion: 3
    createDir:
      path: /creta/TestFolder_20170522_142126/
      StatusResponseFromServer:
        Request: FXP_MKDIR
        InformationReceivedFromServer:
          StatusCode: 4
          StatusMessage: Failure
        --InformationReceivedFromServer
      --StatusResponseFromServer
    --createDir
    Failed.
  --CreateDir
--ChilkatLog

asked May 22 '17 at 08:15

Klaus's gravatar image

Klaus
11

edited May 22 '17 at 08:40


  1. CreateRemoteDir("SYM")
  2. ChangeRemoteDir("SYM")
  3. CreateRemoteDir("B")
link

answered May 23 '17 at 08:36

chilkat's gravatar image

chilkat ♦♦
12.8k318377526

I am missing these calls, since they don't seem to be available with chilkat's sftp's c# component!

There is also no entry called '*RemoteDir' at https://www.chilkatsoft.com/refdoc/cssftpref.html

(May 26 '17 at 03:35) Klaus

I got it to work with simply removing the first '/':

sftp.CreateDir('SYM/B')
link

answered May 26 '17 at 05:50

Klaus's gravatar image

Klaus
11

There is no ChangeRemoteDir for SFTP

link

answered May 28 '17 at 17:53

muggle222's gravatar image

muggle222
183

Thanks. Yes, I wasn't thinking clearly..

Had I been thinking correctly, I would've suggested first creating "/SYM", then "/SYM/B". But the solution was to remove the leading "/".

(May 29 '17 at 17:19) chilkat ♦♦
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:

×226
×4

Asked: May 22 '17 at 08:15

Seen: 655 times

Last updated: May 29 '17 at 17:19

powered by OSQA