[Confirmed] copy/move with "only files of this type"

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Anselm
Junior Member
Junior Member
Posts: 31
Joined: 2013-09-17, 17:06 UTC

[Confirmed] copy/move with "only files of this type"

Post by *Anselm »

Using Windows 7 and Total Commander 9.0 and 9.0a RC2.

(i only have the german.chm file at my system, hopefully i can make a good english report without the englisch one)

I vould like to copy/move dierctories with "only files of this type" and omitting empty directories (do not create empty directories)

I have a directory (d:\testsrc) with a directory tree of three directories and files of the type .doc .txt and .exe in it.

now i copy it to the empty d:\testdest which already exists and use
*.txt *.doc
as "only files of this type"

The result is as i expected. (all .txt and .doc files are copied some directories are empty, which does not have .txt or .doc files.

Now the same with move, the result is as i expected.

Now i try to omit the empty directories and do a copy:
*.txt *.doc|**\
(interesting i did not get it working with my real files). With my real files nothing is copied. It works only, if i define and save a selection "*.txt *.doc" with the name "text". And using
>text|**\
)

Now the reproducable error:
*.txt *.doc|**\
with move and get an error message:
Error cannot write d:\testdest\test1.doc
Please remove the write protection!
Anselm
Junior Member
Junior Member
Posts: 31
Joined: 2013-09-17, 17:06 UTC

Re: copy/move with "only files of this type"

Post by *Anselm »

Anselm wrote:
Now the reproducable error:
*.txt *.doc|**\
with move and get an error message:
Error cannot write d:\testdest\test1.doc
Please remove the write protection!
With different drive letter for source and destination it seems to work. Also if the files at the destination already exists (and overwrite)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6429
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Why do you reply to your own topic ?
Just edit it to ammend with more information.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
Anselm
Junior Member
Junior Member
Posts: 31
Joined: 2013-09-17, 17:06 UTC

Post by *Anselm »

Horst.Epp wrote:Why do you reply to your own topic ?
Just edit it to ammend with more information.
I many boards you can not see what changed, if you edit your own post. If i edit my own post, i have to mark what i changed and i had to edit dates and times to make clear what i changed. It is much easier to reply to my own post, so anyone can see the history.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed currently **\ is only supported when copying - it does work when moving between drives because this is essentially copy+delete. I will fix it.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should work now in RC3, please test it!
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Bump!
Author of Total Commander
https://www.ghisler.com
GrimReaper85
Junior Member
Junior Member
Posts: 15
Joined: 2020-06-22, 20:15 UTC

Re: [Confirmed] copy/move with "only files of this type&qu

Post by *GrimReaper85 »

I just discovered **\ recently in this topic.
One question presents now, do I still need TreeCopyPlus plugin? I only see this which I had always set to 1 anyway:
Presence of an option "Number of upper levels to exclude" - amount of nestings from a root up to the CURRENT folder which are necessary to exclude.
I noticed it is an old plugin from 2004 and Youtube videos are from 2014.
So this **\ is a newer command or it is just not that well known.
Are these commands described in help?

EDIT: TreeCopyPlus is still necessary, I just needed to search something by date and needed folder structure. Or if you want to search by size.
User avatar
tuska
Power Member
Power Member
Posts: 3733
Joined: 2007-05-21, 12:17 UTC

Re: [Confirmed] copy/move with "only files of this type"

Post by *tuska »

GrimReaper85 wrote:So this **\ is a newer command or it is just not that well known.
Are these commands described in help?
F1 - Help wrote: Search for: copy, move, empty or skip --> double click on 'Copy' --> Examples... Append |**\ to skip copying of empty folders.
HISTORY.TXT wrote: 15.05.19 Release Total Commander 9.50 beta 1 pre 1
12.04.19 Added: Upload to file system plugins: Support "skip empty dirs" via copy filters, e.g. *.txt|**\ (32/64)

28.08.17 Release Total Commander 9.10 beta 1 pre 1 (private beta) (32/64)
29.01.17 Added: New wildcards for relative dirs now support wildcard **, which stands for any number of subdirs,
              e.g. subdir\**\*.txt finds text files where the relative path contains "subdir" anywhere in the path (32/64)

08.06.16 Release Total Commander 9.0 beta 1 (32/64)
08.04.15 Added: F5 copy: Skip empty dirs by appending |**\ to line "only files of this type",
              can be combined with other include/exclude filters (32/64)
Post Reply