Archived Forum Post

Index of archived forum posts

Question:

SFTP, create directory 'B' within symbolic-link 'SYM' -> SYM/B

May 29 '17 at 17:19

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

Answer

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

Answer

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

sftp.CreateDir('SYM/B')

Answer

There is no ChangeRemoteDir for SFTP