[Confirmed] copy/move with "only files of this type"
Moderators: Hacker, petermad, Stefan2, white
[Confirmed] copy/move with "only files of this type"
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!
(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!
Re: copy/move with "only files of this type"
With different drive letter for source and destination it seems to work. Also if the files at the destination already exists (and overwrite)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!
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.Horst.Epp wrote:Why do you reply to your own topic ?
Just edit it to ammend with more information.
- ghisler(Author)
- Site Admin
- Posts: 49232
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 49232
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
- ghisler(Author)
- Site Admin
- Posts: 49232
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
-
- Junior Member
- Posts: 15
- Joined: 2020-06-22, 20:15 UTC
Re: [Confirmed] copy/move with "only files of this type&qu
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:
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.
One question presents now, do I still need TreeCopyPlus plugin? I only see this which I had always set to 1 anyway:
I noticed it is an old plugin from 2004 and Youtube videos are from 2014.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.
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.
Re: [Confirmed] copy/move with "only files of this type"
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)