Jump to content
StableBit.com Downtime ×
  • 0

How to remove empty folders from drives that doesn't keep any data?


Ac3M

Question

I'm curious how to do this as my data is constantly being shifted between drives thanks to certain apps that update stuff, and I'm left with a crap-ton of empty folders that sometimes takes forever to move (Among these battalions of empty folders are some that still contains data) in some cases when there's something wrong with a drive whether it's glitching, bad connection or some file system error and it's at 100 % usage and to then have it copying/moving some 20k empty folders isn't smooth, especially if you're having issues with BSOD and such. Sometimes it freezes and doesn't move for minutes, sometimes even hours.

 

I'd like DrivePool to remove these if they're no longer in use - How do I make this happen?

Didn't find any topic (I looked) that matches this, so sorry if I've created a duplicate question.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

It's come up a few times over the years. This post mentions reasons why DP might leave empty (and "empty") folders, while this post mentions a really neat trick with robocopy that can be used to clean them up if you decide you want them gone anyway - note that if you use it but you've got any empty folders you actually want to keep you'll have to exclude them somehow (e.g. via the /XD switch). Hope that helps.

Link to comment
Share on other sites

  • 0

I've been using Czkawka. Select individual disks (not the pool) in "Folder to Search" and then run "Empty Directories" and delete them all.

My workflow has been:

- Run Drivepool balancing by space used

- Stop Drivepool service

- Run Czkawka Empty Directories

- Run SnapRaid Sync/Touch/Scrub

- Start Drivepool service

It's been working pretty well. You can also create a .bat to make it even easier.

Link to comment
Share on other sites

  • 0

I use Remove Empty Directories from this website https://www.jonasjohn.de/red.htm

You can use the simple method with the GUI.  I just select the PoolPart for each of the drives.  

Scan it and delete.  Since I only use the Main Drive letter I must assign a temporary Drive letter to each partition.

I use it because sometimes the directory has sensitive information in the label.  Once a month is good enough.

Link to comment
Share on other sites

  • 0

I've been busy with other things so sorry for the late reply.

I appreciate the replies with suggestions, but I think that perhaps the developers should, I dunno, do something about it?

It can literary take hours to remove an "empty" drive just because of this, and failing drives can be very time sensitive. I don't know if these empty folders would impede moving files, but if it does, it's horrible.

Seeing as how there are several options for various functions for the app itself, not to mention the plugins, I fail to see why there can't be something that cleans up empty folders just as well, setting or plugin.

I see this as a sort of cancer. If I plug in a set of new drives, DP goes to town to re-balance the pool, meaning it'll move stuff between old and new, and once again, as evident, leave empty folders behind...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...