MDL-23044 Use Files API functions in filesystem cron