[FLOW3-general] Resources not removed from file system

Robert Lemke robert at typo3.org
Mon Mar 25 12:17:33 CET 2013


Hi Stephen,

On 16.03.2013, at 15:26, Stephen Bungert <stephenbungert at yahoo.de> wrote:

> I have an image model. If I delete my image model, the image records related resource record is removed from the typo3_flow_resource_resource table.
> 
> However, the table typo3_flow_resource_resourcepointer is still populated with references to files in the file system.
> 
> How can I get flow to remove the images from the file system (and the references to them in typo3_flow_resource_resourcepointer)?


Currently Flow does not support an automatic garbage collection, such a feature (along with a new resource management framework) is planned though for Flow 2.1.

If you want to remove unneeded resource files, you currently need to manually (… with some script) check for all files in Data/Persistent/ if the SHA1 hash (the filename) is still used in some ResourcePointer object in the database. If its not used anymore, you can delete the file.

Cheers,
Robert


More information about the FLOW3-general mailing list