Disk Space Manager

Analyzing, visualizing, and managing disk space

Finding Empty Folders with FolderSizes

clock January 7, 2010 05:59 by author Mark Richards

Nearly every day, we receive emails from users who are just beginning to understand the full capabilities of the FolderSizes integrated search tool.

Because of the deep flexibility of the available criteria, FolderSizes Search can be used for all sorts of purposes - finding files owned by a certain user, creating printable file and folder listings, finding files not modified within the last 365 days... the examples go on and on.

But in this blog post we're going to focus on one specific example - finding empty folders with FolderSizes.

The first thing you should do is make sure you're using FolderSizes v4.8.2.92 or later, which exposes a couple of specific search attributes that will be useful to us (more on this in a minute). Go ahead and download the latest version, if you haven't already. We'll wait.  :-)

Now, once FolderSizes is installed and running, click the Search button in the main window toolbar. This will cause the FolderSizes Search window to appear.

Notice that FolderSizes Search exposes a broad range of search criteria, including search paths, name, date, size, (path) length, attributes and owner. For finding empty folders, we're specifically concerned about the size and attributes search criteria. First, since we want to find folders that have a size of zero, set the size search criteria to "equal to" "0". Here's a screen shot:

find and remove emtpy folders

Next, we want FolderSizes Search to show only folders. Again, we're looking for empty folders here, not empty files (though, of course, FolderSizes can show those too if you want). Do this by clearing all the check boxes in the attributes criteria except the directory attribute. Again, a screen shot:

find and remove empty directories

Finally, specify what paths you want FolderSizes to search. You can add as many local or network (mapped drive or UNC) paths as you like, and FolderSizes will search them all. By default, your root system drive (usually your C:\ drive) will appear in the search paths listing, but of course you can add, remove, and arrange them as needed.

Now - click the Start button in the Search window toolbar, you're off and running. Soon, you'll have a listing of all empty folders in the search paths you specified.

Notice that in the screen shot above, I've adjusted the visible search result columns. Specifically, I've removed the size columns (we know they're zero size, after all, because we specified as much in the search criteria). I've also enabled the "files" and "folders" columns, which show precisely how many files and folders are in each of our empty folders.

Huh? Did I just say that our empty folders might have files and subfolders in them? Yes! After all, we've told FolderSizes to locate folders with an aggregate size of zero - as long as any files or subfolders are also zero-length, then they don't contribute positively to their parent folder's overall size. So is a folder that contains empty files or folders truly empty, then? Well, that's entirely up to you to decide - FolderSizes gives you all the information you need to make such decisions (you can even sort by the files / folders columns as needed).



What is Cluster Overhang (Disk Slack)?

clock December 9, 2009 00:47 by author Mark Richards

Some software tools, including our FolderSizes disk space analysis utility, are capable of reporting two size metrics for each file system object it encounters - "size" and "allocated size" (the latter is sometimes also called "size on disk"). In this blog entry, I will discuss what they metrics represent, and how they differ.

First, you'll find need to know that disk space is allocated to files in units called clusters. The size of a cluster can vary depending upon a number of actors, including what file system is used (NTFS, FAT32, etc.) and partition size. Most people today running the Microsoft Windows operating system are using NTFS, which has a default cluster size of 4K (4096 bytes).

Since all files are stored within one or more clusters, their "size on disk" (allocated size) is always a multiple of the file system's cluster size. For example, if you are using NTFS with a 4K cluster size, any file containing between 1 and 4096 bytes of data will consume a single cluster. Any file containing between 4097 and 8192 bytes will use two clusters. And so on.

As a result, any file that has a size which is not an exact multiple of the file system's cluster size (and the vast majority aren't) will "waste" a portion of its last cluster. Therefore, a file's "allocated" size will usually be larger than its actual size. This wasted space is usually referred to as "cluster overhang" or "disk slack". Some tools such as our FolderSizes disk space analysis software can also report upon cluster overhang for folders (directories).

A rough estimate of wasted space for a volume can be calculated by multiplying the number of files it contains by half the cluster size. So, for example, if an NTFS file system with 4K clusters contains 50,000 files, the estimated wasted space would be about 97MB of disk space.

Other factors, such as file system compression can also affect the computation of allocated space.



Duplicate File Detective 3 Now Available

clock November 23, 2009 02:53 by author Mark Richards

The latest version of Duplicate File Detective - version 3.0 - is now available.

This release of Duplicate File Detective contains some powerful new features and improvements including:

  1. Full unicode support
  2. Support for Windows 7
  3. An entirely new user interface experience
  4. The ability to move or delete duplicates while creating shell shortcuts in their place
  5. A completely overhauled file checksum calculation tool
  6. Greatly improved scalability and efficiency
  7. Duplicate file search result pruning capabilities
  8. Greater flexibility in duplicate search result filtering
  9. Duplicate file search logging
  10. And much, much more


With the release of Duplicate File Detective 3.0, we've taken your ability to find and remove duplicate files to the next level.

Please download the free trial today.