Skip empty dirs on copy

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
isidro
Junior Member
Junior Member
Posts: 96
Joined: 2006-03-21, 04:39 UTC
Location: argentina

Skip empty dirs on copy

Post by *isidro »

I'm very pleased with the new option for filtering on copy, but there should be a tick to only generate dirs when there's something to put on it. (Avoid generating empty dirs). Now it's difficult to clean up all empty dirs.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

There is! Just append: |**\

For example, if you only want to copy Text files and no empty subdirectories, use:
*.txt |**\
Author of Total Commander
https://www.ghisler.com
isidro
Junior Member
Junior Member
Posts: 96
Joined: 2006-03-21, 04:39 UTC
Location: argentina

Re:

Post by *isidro »

ghisler(Author) wrote: 2017-11-16, 16:54 UTC There is! Just append: |**\

For example, if you only want to copy Text files and no empty subdirectories, use:
*.txt |**\
Thanks! Is there a way to search for empty dirs?
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Re:

Post by *Dalai »

isidro wrote: 2019-01-28, 13:08 UTCIs there a way to search for empty dirs?
Yes, there is. Get the DirSizeCalc plugin and use its field "Empty" (or "Contains Files" in conjunction with "Contains Subdirectories") in TC's search, on tab Plugins.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply