docs: def metafilename(self):
          """Returns the filename for the metadata file (not full path). Only used for local files."""
          metafilename = os.path.dirname(self.filename)
          if metafilename: metafilename += '/'
          metafilename += '.' + os.path.basename(self.filename) + '.METADATA'
          return metafilename