[WFX] Different filenames in View and Copy
Posted: 2019-04-25, 23:43 UTC
Hi there,
Although I'm posting this in the Bug reports section I'm not sure if this behavior can be called a bug, but it's unexpected nonetheless. To reproduce this, you need a WFX plugin that shows files with a slash in their name, e.g. my Services2 plugin.
View such a file (F3) (e.g. "TCP/IP NetBIOS Helper" in my Services2 plugin) and take a look at the filename used by TC to save the file. You'll see that the name only contains the part after the slash. Copy (F5) the same file to some local directory and you'll see that the filename is complete, i.e. also containing the part before the slash.
Full example for my Services2 plugin:
The important thing is that this is not limited to or caused by my plugin. In the debugger I can see that TC provides different local filenames for F3 and F5 functions, although both of them call the same plugin function FsGetFile(W).
Why does TC provide different local filenames depending on which function in TC is used? This is irritating, unexpeced and probably one of the reasons why I thought TC would already replace invalid characters in filenames a couple of years ago.
BTW: This issue is a long-standing one; I can reproduce it even in TC 8.01.
Regards
Dalai
Although I'm posting this in the Bug reports section I'm not sure if this behavior can be called a bug, but it's unexpected nonetheless. To reproduce this, you need a WFX plugin that shows files with a slash in their name, e.g. my Services2 plugin.
View such a file (F3) (e.g. "TCP/IP NetBIOS Helper" in my Services2 plugin) and take a look at the filename used by TC to save the file. You'll see that the name only contains the part after the slash. Copy (F5) the same file to some local directory and you'll see that the filename is complete, i.e. also containing the part before the slash.
Full example for my Services2 plugin:
Code: Select all
Remote filename function Resulting local filename
TCP/IP NetBIOS Helper F3 (View) IP NetBIOS Helper[.Running]
TCP/IP NetBIOS Helper F5 (Copy) TCP_IP NetBIOS Helper[.Running]
Why does TC provide different local filenames depending on which function in TC is used? This is irritating, unexpeced and probably one of the reasons why I thought TC would already replace invalid characters in filenames a couple of years ago.
BTW: This issue is a long-standing one; I can reproduce it even in TC 8.01.
Regards
Dalai