Problem WCX DeleteFiles()

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
Hram
New Member
New Member
Posts: 1
Joined: 2005-05-21, 21:04 UTC

Problem WCX DeleteFiles()

Post by *Hram »

Please help Me. I do not speak on English.
if (user pressed "Delete" || "F8")
{
TC does not call OpenArchive (ArchiveData);
TC does not call ReadHeader (hArcData,HeaderData);
TC does not call ProcessFile (hArcData,Operation,DestPath,DestNa);
TC call SetChangeVolProc (oxffffffff, pChangeVolProc);
TC call SetProcessDataProc (0xffffffff,pProcessDataProc);
TC call DeleteFiles (PackedFile, DeleteList);
TC does not call CloseArchive (hArcData);
I return 0;
}
but TC does not delete files from the list
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OpenArchive, ReadHeader, ProcessFile and CloseArchive are only called for listing and unpacking.

For packing and deleting, there is only one function called, which sends the list of files to be packed/deleted to the plugin. The plugin can then do with them what it needs, in the order it needs.

Refresh only occurs when either the size or the time stamp of the archive changes. If you use mapped files, Windows will NOT change the file time even if you write to the file, so you will need to call SetFileTime manually.
Author of Total Commander
https://www.ghisler.com
Post Reply