[WFX] FsExecuteFile called with undocumented verb

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Dalai
Power Member
Power Member
Posts: 9961
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

[WFX] FsExecuteFile called with undocumented verb

Post by *Dalai »

Hi there :),

I don't know if this has been discussed before, but since the search terms are quite limited in this case, I'm opening a new topic.

I observed this behaviour quite some time ago but didn't pay further attention to it. Today, it bothered me and caused a bit of trouble in my plugin, so I'm reporting it.

Upon entering a WFX plugin, TC calls these functions in the given order:

Code: Select all

FsInit
FsSetDefaultParams
FsExecuteFile
FsFindFirst
...
The first two are OK, the third is not (IMO). Via debugging I found out that TC calls FsExecuteFile with the Verb "MODE I" (and an empty RemoteName) which is just as strange as undocumented. It's strange because TC calls this function before it retrieves the file names via FsFindFirst. Where does this call and this Verb come from? Is TC intended to do that? If it's not, then I call it a bug. If it is, the verb is certainly missing in the documentation (plugin SDK).

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

It is strange that it is undocumented - agree. AFAIK it is for FTP plugins. You should simply ignore unknown verbs with empty remote names.
User avatar
Dalai
Power Member
Power Member
Posts: 9961
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

MVV wrote:AFAIK it is for FTP plugins.
That's what I suspected (although I didn't say it).
You should simply ignore unknown verbs with empty remote names.
Agreed. That's the approach I'm using now.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply