Bug in WCX plugins API

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Eugene
Junior Member
Junior Member
Posts: 17
Joined: 2009-11-17, 20:59 UTC

Bug in WCX plugins API

Post by *Eugene »

When I want to create new directory inside my archive, I enter this archive, press F7, enter directory name (eg. "qwe") press OK, and TC calls PackFiles with the following parameters:

SrcPath = "C:\DOCUME~1\User1\LOCALS~1\Temp\_tc"
AddList = "qwe"

This is a command to pack file "qwe", not directory.
I can provide screenshots if you need.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

AFAIK, there is no difference for archiver to add dir or file. If dir exists (in your case it is C:\DOCUME~1\User1\LOCALS~1\Temp\_tc\qwe), archiver should add it.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48104
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, MVV is right - names are unique, so there can't be a subdirectory and file with the same name in the same directory.
Author of Total Commander
https://www.ghisler.com
Eugene
Junior Member
Junior Member
Posts: 17
Joined: 2009-11-17, 20:59 UTC

Post by *Eugene »

Suppose user copies directory named "qwe" (let it be in "b:\" and let it be empty) to archive. Then TC calls PackFiles with the following parameters:

SrcPath = "B:\"
AddList = "qwe\"

Pay attention to the slash. Why TC formats AddList differently in these two cases?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48104
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You were right about the missing slash. I changed this now, so F7 finally works with e.g. the 7zip plugin too!
Author of Total Commander
https://www.ghisler.com
Eugene
Junior Member
Junior Member
Posts: 17
Joined: 2009-11-17, 20:59 UTC

Post by *Eugene »

Although a bit late, but many thanks. Dear Christian, could you please review another my suggestions and make final decision, will you implement them or not?

http://ghisler.ch/board/viewtopic.php?t=25186&highlight=
http://ghisler.ch/board/viewtopic.php?t=25185&highlight=
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48104
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for confirming the fix! I'm considering all suggestions, there are just too many to implement them all immediately...
Author of Total Commander
https://www.ghisler.com
Post Reply