ERROR - Leading spaces in FTP view in TC

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
noen
Junior Member
Junior Member
Posts: 25
Joined: 2006-03-30, 11:11 UTC

ERROR - Leading spaces in FTP view in TC

Post by *noen »

Hello,
I and my friend find an error when listing FTP directory via build-in ftp client. When directory name has leading spaces for example " Test" you can see only "Test" on listing. When you try to go inside tere will be message "No such file or directory"... because the leading spaces are trimmed...
Tested on different ftp servers and with other ftp clients.

Is there a patch? Is this bug known?
What version - if any - works fine?

CU
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Tsss, tsss…

Post by *Clo »

2noen

:) Hello, welcome aboard !

- IIRC, a head-space is not supported in the names, and I guess this is not very clever to set such names…
- In French, this is called «Cut branches to be birched with» :lol:

- Using the Search, you could find out threads in which that topic has been discussed already…

- Personally, I would use a name like “_Test” if I'ld wish to set a "space" from the left-edge of the list…

:mrgreen: Kind regards,
Claude
Clo
Last edited by Clo on 2006-03-30, 12:21 UTC, edited 1 time in total.
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
noen
Junior Member
Junior Member
Posts: 25
Joined: 2006-03-30, 11:11 UTC

2 Clo

Post by *noen »

Thanks, but I can't find the topic you send...

I know that it is not clever to use ledaing spaces in names but somebody used. What to do when I need to connect to remote server where names like that was used??? I have no "access"... Of course I want use TC, but other ftp clients work fine...
Name with spaces is still a name and should be managed!
sesth
Junior Member
Junior Member
Posts: 9
Joined: 2005-09-23, 10:13 UTC
Location: Windach, D

Post by *sesth »

Try
GET " Test"
on the command line.
Gruß
Thomas
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

try

Code: Select all

CWD "./ test"
or even

Code: Select all

cwd ./ test
sheepdog
Last edited by Sheepdog on 2006-03-30, 12:38 UTC, edited 1 time in total.
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
noen
Junior Member
Junior Member
Posts: 25
Joined: 2006-03-30, 11:11 UTC

2 sesth (and 2 all)

Post by *noen »

There is no point how to get there or this...
The point is to fix TC to do everything properly!

I cannot type GET " Test" because I don't know how many spaces was used... It can be GET " Test"... I don't want to guess... I want that everyting works!
For one time I use other ftp client and do what I need to do. But TC is a lot more usefull than windows command line ftp client.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Re: 2 sesth (and 2 all)

Post by *Sheepdog »

noen wrote:I cannot type GET " Test" because I don't know how many spaces was used... It can be GET " Test"... I don't want to guess... I want that everyting works!
Just type ALt+Enter and you will see the temp file containing the names of the files/folders of the current directory. Then you can see how many spaces are used for the " test" directory.

Or just wait till this is fixed.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
noen
Junior Member
Junior Member
Posts: 25
Joined: 2006-03-30, 11:11 UTC

Alt ENTER

Post by *noen »

Looking into temp file (Alt ENTER) spaces are OK
so there is an ERROR in listing windows in TC...

To who write to report this bug?

Because there is NO PROBLEM FOR ME to get to directories with leading spaces but I want that TC works OK.
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

If you say THAT once again I will personaly rewrite TC from ground up and handle that bug myself (It may be even faster then waiting for others to understand that NAME is NAME no matter if it has dot, space, an elephant... as long as it doesn't contain forbiden characters).

So, you found a bug, you are among menu users that have a chance to feed our little forum pet, in public known as black hole.
Be proud. U support alien pet forms.
Habemus majkam!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2noen
The problem is that FTP servers send their file listing as a plain text file. The various fields like name, permissions, size etc. are separated by spaces from each other. Therefore it's not possible to distinguish a space at the beginning of a name from a space which separates the name from other fields, without the knowledge of the exact formatting of the file listing.

Solution: Define your own server type, like this: Ctrl+F, then "New connection", give a server name and choose "Define new server". Now connect to the server. Total Commander will show a dialog box where you can define your own server type. You can start with a predefined type, e.g. Unix, and then adapt it to your needs. You can get a description of the placeholders with F1.
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:

Template?

Post by *Clo »

2ghisler(Author)

:) Good afternoon,

- Interesting explanation, thanks !
- For such a case - that I never encountered on servers, though - may I suggest you give a template¦example, because "Define a server type" is not so easy to make… ?

:mrgreen: m.f.G.
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Ah, ah !

Post by *Clo »

2majkinetor !

:) Hi !

:lol:  :lol:  :lol:  :lol:

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
noen
Junior Member
Junior Member
Posts: 25
Joined: 2006-03-30, 11:11 UTC

2ghisler(Author)

Post by *noen »

2ghisler(Author)

Thank you for constructive information. now everything works fine!

There is no error, like I was thinking, but just something not very typical, thah alredy was notified and proper mechanism is implemented in TC. Thankyou!

PS: TC is a great work! Can be md5 sum module compatible with output created with unix md5? Is a chance to port TC to BSD/X-windows?
Post Reply