Move whole directory and skip all empty folders OR Delete all empty folders from whole directory

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Wojtek
Junior Member
Junior Member
Posts: 72
Joined: 2010-02-07, 11:58 UTC
Location: Germany

Move whole directory and skip all empty folders OR Delete all empty folders from whole directory

Post by *Wojtek »

Hello everyone,

For example, I have the following structure:
X:\Music\Artists\Various Artists\Compilation X\Volume 1\*.*
and these folders are always empty:
X:\Music\Artists\Various Artists\Compilation X\Volume 1\CD1\Album - CD1\
X:\Music\Artists\Various Artists\Compilation X\Volume 1\CD2\Album - CD2\

is it possible to move a whole directory including all subdirectories and corresponding files, but leave out all empty folders?
I already managed to move the files how I like them to be and now there are leftover empty folders.

Using "Only files of this type" with parameter "| **\" doesn't work.
Can this be done with some basic tools?

Or is there a way to remove all empty folders from a whole directory?
Asus Maximus VIII Hero · Win10 Pro x64
Crucial MX500 1TB SSD · 64GB Corsair Vengeance LPX · nVidia GeForce RTX 3060 · Intel i7 7700K

Lenovo ThinkPad X1 Yoga 2.Gen · Win10 Pro x64
512GB SSD · 16GB RAM · intel HD620 · i7-7600U

TC 11.03 32-bit #347308
User avatar
white
Power Member
Power Member
Posts: 5747
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Move whole directory and skip all empty folders OR Delete all empty folders from whole directory

Post by *white »

Wojtek wrote: 2025-01-19, 10:56 UTC Or is there a way to remove all empty folders from a whole directory?
search.php?keywords=delete+empty+folders&terms=all&sf=titleonly&sr=topics
Post Reply