FTP gremlins

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Jun 7, 2008
121
0
#1
Hi

Using TCC 11.00.34

1) If I do

cd "ftp:/ClientFiles"

then

dir ftp:

I see

:
17/12/2009 09:35 2,221,022 B20091216.PVF.Z
17/12/2009 09:30 11,608,444 B20091216.V05.Z
27/11/2009 10:34 297,315,554 barry.zip
14/12/2009 17:06 31,332 S20091214.APC.Z

If I then do

del "ftp:barry.zip" /Z
Deleting ftp://194.202.213.25/ClientFiles/barry.zip
TCC: 550 Delete operation failed. "/ClientFiles/barry.zip"
1 file deleted

How can there be "1 filed deleted" if the operation has failed?

If I retry the operation, but this time having done IFTP /V for the FTP connection, I see

>>>>>>>>>>>>>>>>>>>>>
del "ftp:barry.zip" /Z
PWD
257 "/ClientFiles"
PWD
257 "/ClientFiles"
CWD /ClientFiles/barry.zip
550 Failed to change directory.
PASV
227 Entering Passive Mode (194,202,213,25,63,144)
LIST /ClientFiles/barry.zip
150 Here comes the directory listing.
226 Directory send OK.
Deleting ftp://194.202.213.25/ClientFiles/barry.zip
DELE /ClientFiles/barry.zip
550 Delete operation failed.
TCC: 550 Delete operation failed. "/ClientFiles/barry.zip"
PASV
227 Entering Passive Mode (194,202,213,25,216,140)
LIST /ClientFiles/DESCRIPT.ION
150 Here comes the directory listing.
226 Directory send OK.
1 file deleted
>>>>>>>>>>>>>>>>>>>>>

Is that FTP command of "CWD /ClientFiles/barry.zip" okay?
Surely it should be "CWD /ClientFiles/" ???
Something odd seems to be occuring?

Cheers

Stephen Howe
 

rconn

Administrator
Staff member
May 14, 2008
10,210
86
#2
> Using TCC 11.00.34
>
> If I then do
>
> del "ftp:barry.zip" /Z
> Deleting ftp://194.202.213.25/ClientFiles/barry.zip
> TCC: 550 Delete operation failed. "/ClientFiles/barry.zip"
> 1 file deleted
>
> How can there be "1 filed deleted" if the operation has failed?
Because it's a permission error on the server and TCC doesn't have any way
of knowing exactly what (if anything) happened.


> Is that FTP command of "CWD /ClientFiles/barry.zip" okay?
> Surely it should be "CWD /ClientFiles/" ???
> Something odd seems to be occuring?
WAD (and exactly what it has always done). TCC doesn't have any way of
knowing if the target is a file or directory, so it tries a CWD. If that
works, it's a directory with an implied wildcard; otherwise it's assumed to
be a file.

Rex Conn
JP Software