[BUGFIX] BasicFileUtility uses deprecation API in a wrong way

Resolves: #49765
Releases: 6.2, 6.1, 6.0
Change-Id: Ieb5e652bb35f406207f0f0b63db894c9efbb98ff
Reviewed-on: https://review.typo3.org/22112
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters