Topic "drag & drop cannot create new directories in SFTP mode"

Author Message
camield

Guest


When I drag & drop source directory 'Test' to destination directory /home/winscp, winscp tries to create the wrong directory /home/winscp/Test/Test

Logging on the server:
Oct 16 14:50:47 zigzag sftp-server[19487]: debug1: mkdir id 3086 name /home/winscp/Test/Test mode 0777

WinSCP pops up a dialog like this:
Can't create folder '/home/winscp/Test/'.
No such file or directory.
Error code: 2
Error message from server: No such file (?)
Request code: 14

Creating a new directory with F7 works ok.

Regards,
Camiel
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
I have just tried and it works for me. Can you provide me more information:
  • What interface do you use (Norton Commander/Explorer)?
  • Do you drag file from local panel of WinSCP or from other application (Windows Explorer)?
  • Do you drag one or more directories?
  • Do you drop directory on empty space on panel, some file or another directory?
  • Post a full session log is possible

_________________
Martin Prikryl
Guest




I use the Norton Commander interface, and drag one directory from the left panel (local) to empty space in the right panel (remote).

Here is the session log:
--------------------------------------------------------------------------
WinSCP Version 3.3.0 (Build 177)
Login time: Friday, October 17, 2003 4:56:19 PM
--------------------------------------------------------------------------
Session name: winscp@192.168.100.1
Host name: 192.168.100.1 (Port: 22)
User name: winscp (Password: Yes, Key file: No)
Transfer Protocol: SFTP
SSH protocol version: 2; Compression: No
Agent forwarding: No; TIS/CryptoCard: No; KI: Yes
Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
Ping interval: 0 sec (0 = off); Timeout: 15 sec
SSH Bugs: -,-,-,-,-,-,-,-,
Proxy: none
Return code variable: Autodetect; Lookup user groups: Yes
Shell: default, EOL: 0
Local directory: default, Remote directory: home, Update: No, Cache: Yes
Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
--------------------------------------------------------------------------
Looking up host "192.168.100.1"
Connecting to 192.168.100.1 port 22
Server version: SSH-1.99-OpenSSH_3.7.1
We claim version: SSH-2.0-WinSCP-release-3.3.0.177
Using SSH protocol version 2
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange
Host key fingerprint is:
ssh-rsa 1024 d1:7d:ac:78:b3:ef:7b:4b:29:da:33:9d:e8:ab:eb:27
Initialised AES-256 client->server encryption
Initialised AES-256 server->client encryption
Using username "winscp".
Keyboard-interactive authentication refused
Sent password
Access denied
Access denied
Keyboard-interactive authentication refused
Sent password
Access granted
Opened channel for session
Started a shell/command
--------------------------------------------------------------------------
Using SFTP protocol.
Doing startup conversation with host.
Type: SSH_FXP_INIT, Size: 5, Number: -1
Type: SSH_FXP_VERSION, Size: 5, Number: -1
SFTP version 3 negotiated.
Type: SSH_FXP_EXTENDED, Size: 38, Number: 200
Type: SSH_FXP_STATUS, Size: 38, Number: 200
Status/error code: 8
Server does not recognise WinSCP.
Getting current directory name.
Type: SSH_FXP_REALPATH, Size: 10, Number: 272
Type: SSH_FXP_NAME, Size: 45, Number: 272
Listing directory "/home/winscp".
Type: SSH_FXP_OPENDIR, Size: 21, Number: 523
Type: SSH_FXP_HANDLE, Size: 13, Number: 523
Type: SSH_FXP_READDIR, Size: 13, Number: 780
Type: SSH_FXP_NAME, Size: 971, Number: 780
Type: SSH_FXP_READDIR, Size: 13, Number: 1036
Type: SSH_FXP_STATUS, Size: 28, Number: 1036
Status/error code: 1
Type: SSH_FXP_CLOSE, Size: 13, Number: 1284
Type: SSH_FXP_STATUS, Size: 24, Number: 1284
Status/error code: 0
Startup conversation with host finished.
Copying 1 files/directories to remote directory "/home/winscp/"
PrTime: Yes; PrRO: Yes; Rght: rw-r--r--; PrR: No; FnCs: N; RIC: Yes; Resume: S (10240)
TM: M; AscM: *.*htm*; *.txt; *.php*; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
File: "C:\Documents and Settings\camield\My Documents\Uren"
Type: SSH_FXP_OPENDIR, Size: 27, Number: 1547
Type: SSH_FXP_STATUS, Size: 29, Number: 1547
Status/error code: 2, Message: 1547, Server: No such file, Language: ?
Creating directory "/home/winscp/Uren/".
Type: SSH_FXP_REALPATH, Size: 27, Number: 2064
Type: SSH_FXP_STATUS, Size: 29, Number: 2064
Status/error code: 2, Message: 2064, Server: No such file, Language: ?
Type: SSH_FXP_REALPATH, Size: 26, Number: 2320
Type: SSH_FXP_NAME, Size: 55, Number: 2320
Type: SSH_FXP_MKDIR, Size: 35, Number: 1806
Type: SSH_FXP_STATUS, Size: 29, Number: 1806
Status/error code: 2, Message: 1806, Server: No such file, Language: ?
Asking user:
Can't create folder '/home/winscp/Uren/'. ("No such file or directory.
Error code: 2
Error message from server: No such file (?)
Request code: 14")
Listing directory "/home/winscp".
Type: SSH_FXP_OPENDIR, Size: 21, Number: 2571
Type: SSH_FXP_HANDLE, Size: 13, Number: 2571
Type: SSH_FXP_READDIR, Size: 13, Number: 2828
Type: SSH_FXP_NAME, Size: 971, Number: 2828
Type: SSH_FXP_READDIR, Size: 13, Number: 3084
Type: SSH_FXP_STATUS, Size: 28, Number: 3084
Status/error code: 1
Type: SSH_FXP_CLOSE, Size: 13, Number: 3332
Type: SSH_FXP_STATUS, Size: 24, Number: 3332
Status/error code: 0
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
It still works for me. However I have found some problem dealing with SFTP paths. The problem may occur only on some hosts. So it may be your case. Can you please try it with WinSCP 3.3.1 beta build 189?
camield

Guest


Yes, this build works ok.

Thank you Martin!


For the archives, the problem occured with:
WinSCP 3.3.1 to IBM-AIX w/ OpenSSH 3.4p1
WinSCP 3.3.1 to OpenBSD 3.4 w/ OpenSSH 3.7.1
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
camield wrote:
For the archives, the problem occured with:
WinSCP 3.3.1 to IBM-AIX w/ OpenSSH 3.4p1
WinSCP 3.3.1 to OpenBSD 3.4 w/ OpenSSH 3.7.1

It should be 3.0, shouldn't it?
_________________
Martin Prikryl
Guest




prikryl wrote:
camield wrote:
For the archives, the problem occured with:
WinSCP 3.3.1 to IBM-AIX w/ OpenSSH 3.4p1
WinSCP 3.3.1 to OpenBSD 3.4 w/ OpenSSH 3.7.1

It should be 3.0, shouldn't it?


Yes, silly me, WinSCP 3.3.0. Sorry about that.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License