2Ghisler:
Hi, Christian:
I'm writing a packer plugin which I want to be able to bidirectionally transfer trees between subdirs in pack file and in opposite panel.
Among several other purposes, the one I have in mind now is (for backup restoring) I want it to update the info (attributes and 3 dates: modif, creat and access) of the target subdir's files and subdirs from the ones stored in the pack file. And I want to do it just for the subdirs hanging from my subdir base in the pack file downwards.
Also, when adding trees to my pack file, I want to update that info for all the subdirs in the tree from the source panel base downwards.
The packer plugin IF (interface) doesn't tell me which is my base subdir inside neither the pack file, nor the opposite panel, so, when extracting (pack file in source panel) the only way I have now of finding out is getting the shortest common path among all file paths to process (extract).
But it gives an erroneous result when there is a chain of 1 or more single subdirs per subdir hanging from my base subdir (both pack file and opposite panels): all these single subdirs are in the common path and, so, they are excluded from updating.
So, my suggestion would be to provide that info to the plugin. I now think of 2 possibilities:
1.- Always use the SubPath argument to give the packfile subpath destination and the DestPath to give the extracting destination subdir, instead of them sometimes being NULL.
2.- Provide some more Callbacks, i.e.: PackPath and OppositePath.
Probably, this second option would be better for not harming the bakcwards compatibility.
Also, I believe to remember having read someone else requesting something like this.
Do you think, Ghisler, you could do it, please?
Many thanks.
Packer IF: need location info in pack file and target panel
Moderators: Hacker, petermad, Stefan2, white
-
- Member
- Posts: 107
- Joined: 2003-07-16, 22:40 UTC
- Location: Spain