Page 1 of 1

Copying file from search result in archive

Posted: 2020-08-02, 15:09 UTC
by Motial
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.

Re: Copying file from search result in archive

Posted: 2020-08-02, 18:21 UTC
by petermad
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.

Re: Copying file from search result in archive

Posted: 2020-08-03, 09:12 UTC
by Motial
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).

Re: Copying file from search result in archive

Posted: 2020-08-04, 04:45 UTC
by MVV
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...

Re: Copying file from search result in archive

Posted: 2020-08-06, 09:27 UTC
by ghisler(Author)
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.

Re: Copying file from search result in archive

Posted: 2020-08-06, 11:15 UTC
by MVV
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.