[WFX] Synchronize directories doesn't handle changed filenames
Posted: 2019-04-25, 23:52 UTC
Hi there
.
The title is somewhat generic, but I couldn't think of a better one without making it too long.
To reproduce this you need a WFX plugin that is able to change filenames when a remote file is shown in Lister (F3), e.g. any of my plugins (with AddTxtExtensionOnDownload=1 set in their INI).
Sure, Synchronize directories also compares filenames. The problem is that the plugin doesn't know (and doesn't need to know) which TC feature requested the file, and they all call the same plugin function FsGetFile(W).
So the question is: Why doesn't TC use the changed filename from FsGetFile(W) function when called from within Synchronize directories?
BTW: This issue is a long-standing one; it's reproducible even in TC 8.01.
Regards
Dalai

The title is somewhat generic, but I couldn't think of a better one without making it too long.
To reproduce this you need a WFX plugin that is able to change filenames when a remote file is shown in Lister (F3), e.g. any of my plugins (with AddTxtExtensionOnDownload=1 set in their INI).
- In the left panel switch to the WFX plugin and select any file (doesn't matter how many).
- In the right panel switch to some local directory (empty dir is recommended).
- Call Synchronize directories (cm_FileSync) and start the comparison.
- Press F3 on any file on the left-hand side.
- You'll get an error message from TC, similar to this one:
Code: Select all
--------------------------- File not found! --------------------------- TCP/IP NetBIOS Helper.Running --------------------------- OK ---------------------------
Sure, Synchronize directories also compares filenames. The problem is that the plugin doesn't know (and doesn't need to know) which TC feature requested the file, and they all call the same plugin function FsGetFile(W).
So the question is: Why doesn't TC use the changed filename from FsGetFile(W) function when called from within Synchronize directories?
BTW: This issue is a long-standing one; it's reproducible even in TC 8.01.
Regards
Dalai