FTP plugin bug

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
datswd
Junior Member
Junior Member
Posts: 5
Joined: 2021-07-11, 08:38 UTC

FTP plugin bug

Post by *datswd »

Hi everybody.

There is bug in FTP plugin.
It displays names of files incorrectly.

Example is on the screenshots
Image: https://i.postimg.cc/VNCdCfBf/Screenshot-20210711-113401.png
Image: https://i.postimg.cc/6qw2KkZ9/Screenshot-20210711-113422.png


Regards,
Daniil.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: FTP plugin bug

Post by *ghisler(Author) »

This happens because of the dynamic FTP listing parser, which sees the 1.01 as part of the time stamp. You can see the numbers in the time column. This happens because FTP doesn't have a fixed listing format, it often just uses the output of the dir/ls output of the server.

What you will have to do is create a custom template and then load that via the "Server type" field. The easiest way to create such a string would be via Total Commander for Windows (demo version would do). Just connect to the server and then press Alt+Shift+Enter. You can then pick one of the available templates and adjust it to your needs.

Save it, then look for it in wcx_ftp.ini. It will have the following format:
[template name]
template0=definition string

Just save these lines to a separate ini file and copy it to your phone, where you can then choose it with the plugin.

Alternatively, you can post the raw listing sent by the server here, and I will create a template for you.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: FTP plugin bug

Post by *petermad »

I guess it also depends on the FTP-server.

For me it looks OK - https://madsenworld.dk/tcmd/FTP-LAN.png
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: FTP plugin bug

Post by *ghisler(Author) »

Servers returning a standard Unix file listing don't cause this problem.
Author of Total Commander
https://www.ghisler.com
datswd
Junior Member
Junior Member
Posts: 5
Joined: 2021-07-11, 08:38 UTC

Re: FTP plugin bug

Post by *datswd »

Thanks a lot for the quick response.

Let's try the second option with raw listing.

Here is the output of dir command of default windows FTP client. I hope you meant this by "raw listing"

Code: Select all

-rwx------    1 root       1000                 32553283 Nov 12  2020 1.01 - We Keep on Rockin'.flac
-rwx------    1 root       1000                 27300260 Nov 12  2020 1.02 - Burning.flac
-rwx------    1 root       1000                 26258599 Nov 12  2020 1.03 - Stay the Night.flac
-rwx------    1 root       1000                 31643779 Nov 12  2020 1.04 - From Brazil With Love.flac
-rwx------    1 root       1000                 27365767 Nov 12  2020 1.05 - Inhibitions.flac
-rwx------    1 root       1000                 34554128 Nov 12  2020 1.06 - Harlem Nights.flac
-rwx------    1 root       1000                 31556743 Nov 12  2020 1.07 - Baby.flac
-rwx------    1 root       1000                 27599894 Nov 12  2020 1.08 - Jump Straight into the Fire.flac
-rwx------    1 root       1000                 30473708 Nov 12  2020 1.09 - My My Me and Mine.flac
-rwx------    1 root       1000                 30629514 Nov 12  2020 1.10 - Funkytown.flac
-rwx------    1 root       1000                 31866616 Nov 12  2020 1.11 - Put The Top Down.flac
-rwx------    1 root       1000                 25103504 Nov 12  2020 1.12 - Thank You.flac
-rwx------    1 root       1000                 33390681 Nov 12  2020 1.13 - Stay The Night (Club Mix).flac
-rwx------    1 root       1000                 29964923 Nov 12  2020 2.01 - This Is the World We Live in.flac
-rwx------    1 root       1000                 31213117 Nov 12  2020 2.02 - Crying at the Discotheque.flac
-rwx------    1 root       1000                 30523332 Nov 12  2020 2.03 - Menage a Trois.flac
-rwx------    1 root       1000                 29065992 Nov 12  2020 2.04 - Sexual Guarantee.flac
-rwx------    1 root       1000                 27230141 Nov 12  2020 2.05 - Don't You Want Me.flac
-rwx------    1 root       1000                 28079986 Nov 12  2020 2.06 - Start the Fire.flac
-rwx------    1 root       1000                 26800431 Nov 12  2020 2.07 - Shine On.flac
-rwx------    1 root       1000                 25078385 Nov 12  2020 2.08 - Not a Sinner nor a Saint.flac
-rwx------    1 root       1000                 28425813 Nov 12  2020 2.09 - Physical.flac
-rwx------    1 root       1000                 28876036 Nov 12  2020 2.10 - Ritmo del Amor.flac
-rwx------    1 root       1000                 26110764 Nov 12  2020 2.11 - Alcastar.flac
-rwx------    1 root       1000                 32376257 Nov 12  2020 2.12 - Love Life.flac
-rwx------    1 root       1000                 33540519 Nov 12  2020 2.13 - Someday.flac
Thanks in advance.

Regards,
Daniil.
datswd
Junior Member
Junior Member
Posts: 5
Joined: 2021-07-11, 08:38 UTC

Re: FTP plugin bug

Post by *datswd »

Here is the output of ls command of default windows FTP client:

Code: Select all

200 PORT command successful
150 Connecting to port 53913
1.01 - We Keep on Rockin'.flac
1.02 - Burning.flac
1.03 - Stay the Night.flac
1.04 - From Brazil With Love.flac
1.05 - Inhibitions.flac
1.06 - Harlem Nights.flac
1.07 - Baby.flac
1.08 - Jump Straight into the Fire.flac
1.09 - My My Me and Mine.flac
1.10 - Funkytown.flac
1.11 - Put The Top Down.flac
1.12 - Thank You.flac
1.13 - Stay The Night (Club Mix).flac
2.01 - This Is the World We Live in.flac
2.02 - Crying at the Discotheque.flac
2.03 - Menage a Trois.flac
2.04 - Sexual Guarantee.flac
2.05 - Don't You Want Me.flac
2.06 - Start the Fire.flac
2.07 - Shine On.flac
2.08 - Not a Sinner nor a Saint.flac
2.09 - Physical.flac
2.10 - Ritmo del Amor.flac
2.11 - Alcastar.flac
2.12 - Love Life.flac
2.13 - Someday.flac
226 26 matches total
datswd
Junior Member
Junior Member
Posts: 5
Joined: 2021-07-11, 08:38 UTC

Re: FTP plugin bug

Post by *datswd »

Alt+Shift+Enter doesn't work
datswd
Junior Member
Junior Member
Posts: 5
Joined: 2021-07-11, 08:38 UTC

Re: FTP plugin bug

Post by *datswd »

Also there is such text if i press Alt+Enter

Code: Select all

type=cdir;sizd=8192;modify=20201220095420;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30cb5; .
type=pdir;sizd=49152;modify=20210711083227;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g2c960; ..
type=file;size=32553283;modify=20201112053538;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30cd5; 1.01 - We Keep on Rockin'.flac
type=file;size=27300260;modify=20201112053542;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30cd6; 1.02 - Burning.flac
type=file;size=26258599;modify=20201112053545;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30cd7; 1.03 - Stay the Night.flac
type=file;size=31643779;modify=20201112053549;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30cd8; 1.04 - From Brazil With Love.flac
type=file;size=27365767;modify=20201112053552;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30cd9; 1.05 - Inhibitions.flac
type=file;size=34554128;modify=20201112053556;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30cda; 1.06 - Harlem Nights.flac
type=file;size=31556743;modify=20201112053600;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30cdb; 1.07 - Baby.flac
type=file;size=27599894;modify=20201112053603;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30cdc; 1.08 - Jump Straight into the Fire.flac
type=file;size=30473708;modify=20201112053609;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30cdd; 1.09 - My My Me and Mine.flac
type=file;size=30629514;modify=20201112053613;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30cde; 1.10 - Funkytown.flac
type=file;size=31866616;modify=20201112053616;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30cdf; 1.11 - Put The Top Down.flac
type=file;size=25103504;modify=20201112053620;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30ce0; 1.12 - Thank You.flac
type=file;size=33390681;modify=20201112053624;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30ce1; 1.13 - Stay The Night (Club Mix).flac
type=file;size=29964923;modify=20201112053628;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30ce2; 2.01 - This Is the World We Live in.flac
type=file;size=31213117;modify=20201112053631;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30ce3; 2.02 - Crying at the Discotheque.flac
type=file;size=30523332;modify=20201112053635;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30ce4; 2.03 - Menage a Trois.flac
type=file;size=29065992;modify=20201112053638;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30ce5; 2.04 - Sexual Guarantee.flac
type=file;size=27230141;modify=20201112053641;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30ce6; 2.05 - Don't You Want Me.flac
type=file;size=28079986;modify=20201112053645;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30ce7; 2.06 - Start the Fire.flac
type=file;size=26800431;modify=20201112053648;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30ce8; 2.07 - Shine On.flac
type=file;size=25078385;modify=20201112053651;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30ce9; 2.08 - Not a Sinner nor a Saint.flac
type=file;size=28425813;modify=20201112053654;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30cea; 2.09 - Physical.flac
type=file;size=28876036;modify=20201112053658;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30ceb; 2.10 - Ritmo del Amor.flac
type=file;size=26110764;modify=20201112053701;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30cec; 2.11 - Alcastar.flac
type=file;size=32376257;modify=20201112053705;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30ced; 2.12 - Love Life.flac
type=file;size=33540519;modify=20201112053709;UNIX.mode=0700;UNIX.uid=0;UNIX.gid=1000;unique=811g30cee; 2.13 - Someday.flac
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: FTP plugin bug

Post by *ghisler(Author) »

Interesting, it's standard Unix format, but with the numbers it looks like the extended Unix format.
You can use the following ini file, e.g. save as unix.ini:

Code: Select all

[Unix]
pppppppppp                     !S* TTT DD UUUUU n*
Author of Total Commander
https://www.ghisler.com
Post Reply