Rename Folders that are empty or only contain Folders

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
JimmyTheBroker
Member
Member
Posts: 179
Joined: 2017-06-07, 05:22 UTC

Rename Folders that are empty or only contain Folders

Post by *JimmyTheBroker »

Hi guys,

I am wondering if there is a way to:
Rename Folders that are empty or only contain Folders with "name + (Empty)" etc

So that if I am browsing through directories I can tell quickly if they're useful or dead legs. (I want to keep the folder structure as it is, to add things into the correct folders as projects develop.)

eg:
  • E:\AS\A\A
    E:\AS\A\A\C
    E:\AS\A\B
    E:\AS\A\B\Work.doc
    E:\AS\B\A
    E:\AS\B\B
    E:\AS\B\B\C
Would rename to:
  • E:\AS\A\A (Empty)
    E:\AS\A\A (Empty)\C (Empty)
    E:\AS\A\B
    E:\AS\A\B\Work.doc
    E:\AS\B (Empty)\A (Empty)
    E:\AS\B (Empty)\B (Empty)
    E:\AS\B (Empty)\B (Empty)\C (Empty)
Thanks!
Jimmy 8)
I finally get notifications from emails again!!!
So happy!
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Download and install DirSizeCalc - https://totalcmd.net/plugring/dirsizecalc.html
Perform search with settings on plugins page:

Plugin: dirsizecalc
Property:File Count
OP:=
Value:0

and

Plugin:dirsizecalc
Property:Directory Count
OP:>=
Value:0

Search, feed to listbox, rename with mask "[N] (Empty)"
Post Reply