move to \OC\Files\FileInfo, fix phpdoc, use pathinfo to get extension, log number of deleted files with debug level