Personal tools
You are here: Home CinnamonServer Tools RepositoryCleaner

RepositoryCleaner

Remove empty folders from Cinnamon file system storage

Cinnamon stores the content of its data objects (like documents, images and other media) on the file system. Instead of using one folder with many thousands of files (which can surprisingly break even "modern" file systems or at least file system viewers), a hierarchy of folders (up to 256^3) is used to distribute the files more evenly. When an object is deleted, the folder in which it was stored may be left empty. Over time, those empty folders may grow to problematic amounts, so we wrote a tool to remove empty folders inside the configured repositories.

The Java class server.helper.RepositoryCleaner of the CinnamonUtils package is used to remove old and unused folders. It will scan all repositories on the server which are configured in CINNAMON_HOME_DIR/cinnamon_config.xml.

Document Actions