chomupashchuk / delete-file-home-assistant

Delete file service for home assistant
MIT License
69 stars 18 forks source link

Feature request: delete old files to meet required folder size #19

Closed RomanDidenko closed 3 years ago

RomanDidenko commented 3 years ago

Hi,

It would nice to have the ability to delete old files if folder size exceeds the desired limit but also keep files that not older than X if folder size is under the ultimate limit (otherwise additionally delete oldest files to meet this ultimate limit). This way it would be possible to maintain folder size and keep the newest files even first folder size limit is exceeded.

Thanks

chomupashchuk commented 3 years ago

I'll consider it

chomupashchuk commented 3 years ago

You may try version 1.8. A quick test showed that it should work (new attribute size, see readme).

RomanDidenko commented 3 years ago

You Rock! Thank you, it works very well.