def file_info(self, path):
        """Returns the file info for the given remote file

        :param path: path to the remote file
        :returns: file info
        :rtype: :class:`FileInfo` object or `None` if file
            was not found
        :raises: HTTPResponseError in case an HTTP error status was returned
        """
        res = self._make_dav_request('PROPFIND', path, headers={'Depth': '0'})
        if res:
            return res[0]
        return None
Returns the file info for the given remote file

        :param path: path to the remote file
        :returns: file info
        :rtype: :class:`FileInfo` object or `None` if file
            was not found
        :raises: HTTPResponseError in case an HTTP error status was returned