Hello,
I think I found a refresh/redraw problem in Total Commander related to MkDir in a WFX plugin path.
Environment:
- Total Commander 11.57 x64
- Windows 11
- custom WFX plugin
- writable remote path opened via the plugin
Problem:
Creating a directory via F7 / MkDir in the WFX path succeeds, but the current file list is not refreshed automatically.
The newly created directory is only shown after manual Ctrl+R or after leaving and re-entering the directory.
Repro steps:
1. Open a writable directory inside a WFX plugin path.
2. Press F7 and create a new directory.
3. The operation succeeds and the directory is actually created remotely.
4. The new directory is not shown in the current panel immediately.
Expected:
- After successful MkDir, the current panel should show the new directory immediately.
Actual:
- The directory is created successfully, but the panel remains unchanged until manual refresh or re-entering the directory.
Control case:
- Delete in the same WFX path updates the panel correctly.
- So write operations in general work, but create-directory does not trigger the same visible refresh behavior.
Plugin-side checks already done:
- Verified that the newest plugin build is really deployed and loaded.
- Verified that the remote directory is actually created.
- Tried to trigger refresh from the plugin after successful FsMkDirW with:
- cm_RereadSource
- cm_RereadSource 1
- delayed WM_COMMAND reread after returning from FsMkDirW
- None of these attempts fixed the behavior reliably.
Why this looks TC-side:
- The same plugin path refreshes correctly on delete.
- Similar redraw/refresh issues with internal commands have already existed in TC and were fixed in TC itself.
- HISTORY.TXT also contains a related entry:
"15.03.26 Fixed: F7 create directory didn't refresh file list in UNC paths (32/64)"
Question:
Is this a known limitation/bug for WFX plugin paths after MkDir, or is there an official plugin-side callback/mechanism intended to tell TC that the current file list must be re-read after successful directory creation?
If needed, I can provide a minimal reproducible WFX test case.
Best regards
WFX plugin: MkDir succeeds but current panel doesn't refresh automatically
Moderators: petermad, Stefan2, white, Hacker
Re: WFX plugin: MkDir succeeds but current panel doesn't refresh automatically
Thanks,
this turned out not to be a Total Commander bug. Root cause was on our plugin side: we returned wrong values in callbacks where TC expects BOOL semantics (1 = success, 0 = failure), not WFX error codes. After fixing that in our plugin, MkDir/delete behavior and panel refresh are working correctly.
Sorry for the noise, and thanks for pointing us in the right direction
this turned out not to be a Total Commander bug. Root cause was on our plugin side: we returned wrong values in callbacks where TC expects BOOL semantics (1 = success, 0 = failure), not WFX error codes. After fixing that in our plugin, MkDir/delete behavior and panel refresh are working correctly.
Sorry for the noise, and thanks for pointing us in the right direction
Re: WFX plugin: MkDir succeeds but current panel doesn't refresh automatically
Moderator message from: white » 2026-06-03, 21:25 UTC
Moved topic
» from TC11.x bug reports (English) to Plugins and addons: devel.+support (English)
» from TC11.x bug reports (English) to Plugins and addons: devel.+support (English)

