Topic "FTP directory remove problem (WinSCP 4.0.5)"

Author Message
juhehe
[View user's profile]

Joined: 2003-05-09
Posts: 4
WinSCP 4.0.5 using FTP on "ProFTPD 1.3.1rc2 Server",
when deleting directory (here it's named test):

Error
Error deleting file 'test'.
"/home/j/u/junonot/cgi-bin/test/: Invalid argument"

Move operation encounters the same problem: it moves the files succesfully but fails to remove any directory.

Using another ftp client "rmdir test" deleted the 'test' directory just fine.
It was "chmod 711".
Creating a directory using WinSCP405 works fine.

Perhaps the problem is that the server is having trouble deleting the current working directory. Is "cd .." or "cd ~" a good solution to do before the RMD command?
Or is the slash too much at the end of the parameter.
Hopefully I did include enough of the log to be useful:

Session upkeep
Deleting file "test".
Retrieving directory listing...
CWD /home/j/u/junonot/cgi-bin/test/
250 CWD command successful
PWD
257 "/home/j/u/junonot/cgi-bin/test" is the current directory
TYPE A
200 Type set to A
PORT 192,168,0,187,12,6
200 PORT command successful
LIST -a
150 Opening ASCII mode data connection for file list
drwxr-xr-x 2 30344 1001 80 Oct 26 14:59 .
drwxr-xr-x 5 30344 1001 1024 Oct 26 14:59 ..
226 Transfer complete
Directory listing successful
Got reply 1 to the command 2
RMD /home/j/u/junonot/cgi-bin/test/
550 /home/j/u/junonot/cgi-bin/test/: Invalid argument
Got reply 4 to the command 64
Asking user:
Error deleting file 'test'. ("/home/j/u/junonot/cgi-bin/test/: Invalid argument")
Session upkeep
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
juhehe wrote:
Perhaps the problem is that the server is having trouble deleting the current working directory. Is "cd .." or "cd ~" a good solution to do before the RMD command?

That's quite probable. I'll fix this in the next version.
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
This issue has been resolved already. The fix will be included into the next release.
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