[REQ] Repeat FTP command after reconnecting

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

User avatar
Flint
Power Member
Power Member
Posts: 3506
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

[REQ] Repeat FTP command after reconnecting

Post by *Flint »

1. Some FTP connection is opened but gone offline.
2. Press e.g. F5 to download some file.
3. TC shows a question if you want to reconnect. Reply Yes.
4. TC reconnects, and now you have to repeat your action, i.e. again press F5.

Suggestion: it would be more convenient if TC after restoring the connection performed the action that the user requested.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

BIG Support ++++
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Logical…

Post by *Clo »

2Flint

:) Hello K. !

• That makes sense ! I suppport !

:mrgreen: FR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
ado
Senior Member
Senior Member
Posts: 445
Joined: 2003-02-18, 13:22 UTC
Location: Slovakia, Pezinok

Post by *ado »

User avatar
Flint
Power Member
Power Member
Posts: 3506
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

Ah, I definitely should improve my forum search skills... :roll:
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This isn't implemented because some FTP servers don't return a valid current directory, or don't return to the same location even when the directory is passed to them.

For example, some servers for Windows support changing drives via the command
cd d:

The server will then show the contents of drive d:, but list the current directory only in the form
/subdir1/subdir2

Now when TC reconnects, and sends
cd /subdir1/subdir2
to the server, the server will go just to c:\subdir1\subdir2
Author of Total Commander
https://www.ghisler.com
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Repeat, please !

Post by *Clo »

2ghisler(Author)

:) Good evening,

• Well, we know that Unix doesn't use drive letters, it knows only Holy Root “/” and all the rest is “directory”.
…Now when TC reconnects, and sends
cd /subdir1/subdir2…
• Why not repeat the drive for that call? Like:
cd D:/subdir1/subdir2…
:?:

:mrgreen: VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

How should I know that the other side is not Unix? How should I know that you can change drives this way when the server reports just /subdir1/subdir2 as the path?
Author of Total Commander
https://www.ghisler.com
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Log ?

Post by *Clo »

2ghisler(Author)

:) Good evening,
How should I know that the other side is not Unix? How should I know that you can change drives this way when the server reports just /subdir1/subdir2 as the path?
• Maybe reading the very previous connection in the log file ? :roll:

:mrgreen: VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Flint
Power Member
Power Member
Posts: 3506
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

ghisler(Author) wrote:How should I know that the other side is not Unix?
Doesn't the SYST command do the trick? :? What is it called for in TC when a connection is established?
ghisler(Author) wrote:For example, some servers for Windows support changing drives via the command
cd d:
Could you please tell a sample FTP server which allows to do that? I'd like to test this feature. I tried with IIS but no success: it just accepts only one specific directory as a root of the FTP. Moreover, on trying "cd d:" it just reports "550 d:: The filename, directory name, or volume label syntax is incorrect."
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Doesn't the SYST command do the trick?
No, many servers report themselves as Unix because they return a standard Unix-style file listing.
Author of Total Commander
https://www.ghisler.com
User avatar
ado
Senior Member
Senior Member
Posts: 445
Joined: 2003-02-18, 13:22 UTC
Location: Slovakia, Pezinok

Post by *ado »

and what about you'll remember for each open FTP connection if user entered something like "cd d:" and after reconnect you'll simply send the last "cd d:" (if user used it) and then "cd /subdir1/subdir2"
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Post by *Clo »

2ado

:) Hello!

• It's that I said above by using the log-file…

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Plenz
Junior Member
Junior Member
Posts: 35
Joined: 2003-02-24, 10:24 UTC

Re: [REQ] Repeat FTP command after reconnecting

Post by *Plenz »

Flint wrote:1. Some FTP connection is opened but gone offline.
2. Press e.g. F5 to download some file.
3. TC shows a question if you want to reconnect. Reply Yes.
4. TC reconnects, and now you have to repeat your action, i.e. again press F5.
First of all, it would be more convenient if TC does not ask me if I want to reconnect. It should reconnect without asking me. In my opinion, this question is too stupid. I don't remember any case where I said "no".

ghisler(Author) wrote:How should I know that the other side is not Unix?
You must not know. Let the user know. Just give us some checkboxes to tell TC how to work, please!
Lars Blaabjerg
Junior Member
Junior Member
Posts: 7
Joined: 2007-04-27, 08:48 UTC
Location: Aarhus, Denmark

Post by *Lars Blaabjerg »

If a server returns a path to a directory and does not go to the same directory when fed the same path, I think that server has a problem and should be treated as a special case (user selectable).

I would very much like automatic reconnection too.
Post Reply