code: def get_display_name(self, short=False):
          
          if self.location is None:
              return '[New file]'
          elif short:
              return os.path.basename(self.location)
          else:
              return self.location
docs: Return name as displayed.