File Identification in Plone BlobStorage

Files in var / blobstorage can be listed and sorted by size using Unix commands. This method shows large files in the top list. How can I identify these files, what are the identifiers / paths on the Plone website?

+6
source share
1 answer

There is no "supported" method for this. You could probably write a script to check the ZODB repository, but that would be tricky. If you want to find the largest files on your Plone site, you are probably better off writing a script that will work in Plone and use it to search (using portal_catalog) for all File objects (or any other type of content that is most likely have large files) and call get_size () on it. This should return the size (cached) and you can delete what you want to clear.

+6
source

Source: https://habr.com/ru/post/897851/


All Articles