backslash in ftp file names - inconsistency?

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

backslash in ftp file names - inconsistency?

Post by *StatusQuo »

When you (maybe accidently) rename a remote FTP-file to ..\filename.txt (using backslash instead of slash), TC renames it as you told it.
Because of the leading dot the file is not displayed any more. cm_FtpHiddenFiles makes TC show the file, but:
:arrow: only the name part after the backslash is displayed (filename.txt).

- The file list is sorted correctly (alpabetically before files starting with a single dot),
- also cm_RenameOnly works OK, showing the complete name (..\filename.txt)

So the displayed file list seems to be the only place that can not deal with backslashes in file names.
Is this a known limitation?
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is for security reasons: When you copy the file, it's copied without the ..\ at the beginning to avoid that it overwrites system files in a higher directory, e.g. via
..\windows\explorer.exe
or so. The file is shown in the list in the same way as it is copied.
Author of Total Commander
https://www.ghisler.com
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

I see, thanks for the info.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
Post Reply