fnagel / deletefiles

TYPO3 extension deletefiles
http://typo3.org/extensions/repository/view/deletefiles
GNU General Public License v2.0
2 stars 5 forks source link

Check if a file is used by FAL before deleting #1

Open Domtaholic opened 5 years ago

Domtaholic commented 5 years ago

Am i missing something or do you NOT check if the file ist still referenced via FAL?

I just read the code and you are just checking if a file is older then a certain point which is some sort of okay, but do you check if the file is still referenced?

A file could be older then 6months and is still visible on the website, you would still delete it which is obviously bad.

I just couldn´t find it.

fnagel commented 5 years ago

This extension does not take usage in FAL into consideration. If a file is old enough it will be deleted physically and marked as deleted in FAL.

Checking if the file is still in use might be a nice new feature tough.

Domtaholic commented 5 years ago

Ye, would make a lot of sense in my opinion ;)

Our client don´t want to pay for a solution which considers FAL, they do it manually so i can´t invest time there, will you update this in the near feature?

Then we would consider this extension in future projects

Cheers

fnagel commented 5 years ago

No, I have no plans to implement this any time soon, sorry.

fnagel commented 4 years ago

Checked how to implement this feature.

Sadly TYPO3's FAL has no "inUse" flag so I checked how the info dialog handles this. It's a bunch of non public DB queries which cannot be reused easily.

Reference: