public function postGetMimeType($path, $mime) { if (self::isEncrypted($path)) { $mime = OCP\Files::getMimeType('crypt://' . $path, 'w'); } return $mime; }