When making the following:
1. Searching files that incldues files in archived
2. making "feed to list box"
3.copy the files in the list box to the left
the whole archived is copy instead of just the file in the list.
This is rarely the expected behaviour.
Copying file from search result in archive
Moderators: Hacker, petermad, Stefan2, white
Re: Copying file from search result in archive
If you look at the files in the search result, you will see only the archives, not names of files inside the archives, so when you copy, of course you copy what's in the list - nothing unexpected there.
But you could say that it is unexpected that the files inside the archives are not listed separately, like they are in the search result before it is fed to listbox.
But you could say that it is unexpected that the files inside the archives are not listed separately, like they are in the search result before it is fed to listbox.
Last edited by petermad on 2020-08-03, 21:06 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Copying file from search result in archive
Actually you are correct.
Is there a way to make the result in the list like it was in the search result?
If not, there should be such an option (Even default behaviour).
Is there a way to make the result in the list like it was in the search result?
If not, there should be such an option (Even default behaviour).
Re: Copying file from search result in archive
Unfortunately TC can't list files in archives together with regular files in listbox, so we can't copy them together. I'm pretty sure there is a few-years-old suggestion...
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Copying file from search result in archive
The problem isn't the listing, that could be handled easily. The problem is the handling of files from multiple archives and/or regular files together, e.g. when the user then tries to delete, copy, pack, upload them, etc. etc.. That would mean a LOT of new complex functions to be created and maintained to handle such a mix of files.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Copying file from search result in archive
Looks like you only need to define an interface with all operations and different implementations for file system or a packer plugin. But grouping similar operations within the same archive (e.g. for batch deletion) is a bit harder, because you need to go through the selection and find objects related to the same archive, so it may be easier to just create a lightweight file path wrapper that knows its kind and source (local file, file from archive, archive path), in such case it will be easy to enumerate selected items and group local files and files from same archives.