[WFX] When does TC call FsRemoveDir?
Moderators: Hacker, petermad, Stefan2, white
[WFX] When does TC call FsRemoveDir?
Although an entry was defined as FILE_ATTRIBUTE_DIRECTORY (folder icon is shown), TC never calls FsRemoveDir? So when does TC call this function?
What I also observed is, that TC allows removing a file using DEL key (but the entry still remains in the list) although FsDeleteFile is not exported. Is this intentional or am I doing something wrong?
Regards,
CoolWater
What I also observed is, that TC allows removing a file using DEL key (but the entry still remains in the list) although FsDeleteFile is not exported. Is this intentional or am I doing something wrong?
Regards,
CoolWater
FsDeleteFile() must be an exported function, too.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
CoolWater wrote:But dont't want to use it!
Code: Select all
BOOL __stdcall FsDeleteFile(char* RemoteName){return FALSE;}
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
Maybe I am wrong. However this is what I did to make FsRemoveDir() be called by TC.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Indeed FsRemoveDir will only be called when FsDeleteFile is present too. Why? The function used for deleting is a combined function which goes through the list of selected directories and files, and then deletes them.
Why not just return true to FsDeleteFile without deleting anything? No error will be shown, and the (pseudo?) file will remain in the list.
Why not just return true to FsDeleteFile without deleting anything? No error will be shown, and the (pseudo?) file will remain in the list.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com