/** * Rename thumbnail after file rename * @param array $params All parameters passed by hook */ public static function cleanupForRename($params) { $oldPath = $params['oldpath']; \OCA\OCLife\utilities::deleteThumb($oldPath); return TRUE; }