ERROR - Leading spaces in FTP view in TC
Moderators: white, Hacker, petermad, Stefan2
ERROR - Leading spaces in FTP view in TC
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
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
Tsss, tsss…
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»
- 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…
Kind regards,
Claude
Clo
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»
- 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…
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 T•C French translator Aide en Français Tutoriels Français English Tutorials
2 Clo
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!
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!
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
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
2 sesth (and 2 all)
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.
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.
Re: 2 sesth (and 2 all)
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.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!
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
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Alt ENTER
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.
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.
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
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.
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!
- ghisler(Author)
- Site Admin
- Posts: 48213
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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.
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
https://www.ghisler.com
Template?
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… ?
m.f.G.
Claude
Clo
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… ?
m.f.G.
Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
Ah, ah !
2majkinetor !
Hi !
KR
Claude
Clo
Hi !
KR
Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
2ghisler(Author)
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?
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?