Create remote directory
Hello,
I downloaded sFTP .net 5.9.3 and i tried to create a directory sFTP as documentation
but i got an error:
SFTP protocol violation: Invalid response message type (0).
Error creating folder '/xxx'.
Any body help me pls ?
Thanks you
I downloaded sFTP .net 5.9.3 and i tried to create a directory sFTP as documentation
foreach (FileSystemInfo fileInfo in fileInfos) { string remoteFilePath = session.TranslateLocalPathToRemote(fileInfo.FullName, localPath, remotePath); if (fileInfo.Attributes.HasFlag(FileAttributes.Directory)) { // Create remote subdirectory, if it does not exist yet if (!session.FileExists(remoteFilePath)) { session.CreateDirectory(remoteFilePath); } } }
but i got an error:
SFTP protocol violation: Invalid response message type (0).
Error creating folder '/xxx'.
Any body help me pls ?
Thanks you