'Returns a dictionary with "file_count", "file_quota",
"space_used", and "space_quota".  The quotas
may be None.'

@_coerce_exceptions
def get_usage_and_quota(self, path):

    path = encode_fs_path(path)
    summary = self.nn_client.getContentSummary(self.request_context, normpath(path))
    ret = dict()
    ret['file_count'] = summary.fileCount
    ret['space_used'] = summary.spaceConsumed
    if (summary.quota in (QUOTA_RESET, QUOTA_DONT_SET)):
        ret['file_quota'] = None
    else:
        ret['file_quota'] = summary.quota
    if (summary.spaceQuota in (QUOTA_RESET, QUOTA_DONT_SET)):
        ret['space_quota'] = None
    else:
        ret['space_quota'] = summary.spaceQuota
    return ret
