Display 'Global' if file's Parent is 'site'

cover:
    required: true
    label: Cover (max. 2)
    type: files
    uploads: false
    query: site.images.add(model.images)
    text: "{{ file.name }}{{ file.parent.title == page.title ? '' : ' — Global' }}"
    info: "{{ file.parent.title }}"
    max: 2

I’m thinking page.title is not available inside the file-query? Am I right?

found it!

obviously I should have done this instead:

  cover:
    required: true
    label: Cover (max. 2)
    type: files
    uploads: false
    query: site.images.add(page.images)
    info: "{{ file.parent.is(site) ? 'Global' : null }}"
    max: 2