Rename inside archive
Moderators: Hacker, petermad, Stefan2, white
Rename inside archive
Why WCX plugin interface does not provide rename functionality?
Re: Rename inside archive
I would say this is because none of this Tools/Plugins works inside an archive. If you change something inside an in really it unpacks temporary and repacks it again. An renaming operation would happen inside therefore it isnt possible.Dec wrote:Why WCX plugin interface does not provide rename functionality?
gruß
chriss
chriss
If structure of archive allows user to rename a file inside archive (for example file list is stored at the end of the file of archive and rename operation does not require to rewrite whole archive) imho it will be good idea to add rename functionality to WCX interface. If plugin implements rename function - user can use it. If don`t - user will use "classic" way with with creation of the new archive and coping content of old to new.MVV wrote:Perhaps because most archivers don't allow that.
Realization of rename functionality is plugin specific. If plugin author want to implement it - his rename function will do all unpack/pack operations much more efficient and fast than Total Commander and user.chriss wrote:If you change something inside an in really it unpacks temporary and repacks it again.
sure?Dec wrote:Realization of rename functionality is plugin specific. If plugin author want to implement it - his rename function will do all unpack/pack operations much more efficient and fast than Total Commander and user.chriss wrote:If you change something inside an in really it unpacks temporary and repacks it again.
well - i´m no coder, but if it would be as simple as setting a switch or so i believe most of the coder whould be do it.
but if this means to rewrite a tool/plugin/whatever - i´m not sure....
gruß
chriss
chriss
I am developer so I am sure.chriss wrote:sure?
No one can force the programmers to update their plugins. But add rename functionality is not the same as rewrite whole plugin.chriss wrote:if it would be as simple as setting a switch or so i believe most of the coder whould be do it.
but if this means to rewrite a tool/plugin/whatever
Still waiting for ghisler comment.
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Renaming is problematic when the length of the name changes - normally the entire archive has to be copied to adjust to the new name length. Some archives may even need complete re-packing, e.g. solid 7zip. There is currently no plugin function for renaming. All plugins would have to be updated to support it, which is very unlikely.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Problematic does not mean impossible. And there are a lot of "archive" files in which rename function is easy to implement. Different disc WCX and etc.ghisler(Author) wrote:Renaming is problematic when the length of the name changes - normally the entire archive has to be copied to adjust to the new name length. Some archives may even need complete re-packing, e.g. solid 7zip.
Why don`t you want to add rename interface for developers who can and want implement it. When plugin does not implement DeleteFile - TC just shows "Not available" (or something like this, I don`t remember). And when plugin does not implement RanameFile - just show the same message.ghisler(Author) wrote:There is currently no plugin function for renaming. All plugins would have to be updated to support it, which is very unlikely.
If you add rename interface there is a chance that developer will update plugin and end user will have rename functionality. But if you don`t add - there are no chances at all.
2ghisler(Author)
I think this is something that the plugin author can decide.Renaming is problematic when the length of the name changes - normally the entire archive has to be copied to adjust to the new name length. Some archives may even need complete re-packing, e.g. solid 7zip.
I currently don't see why it cannot be optional.All plugins would have to be updated to support it, which is very unlikely.
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I'm indeed considering it for TC9, although there are still some unresolved problems like handling of the GetPackerCaps function - TC currently stores the flags in the wincmd.ini and does NOT update them when installing a newer version of the plugin.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com