I mean this :) https://github.com/owncloud/core/blob/master/lib/files/view.php