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
def metafilename ( self ) : metafilename = os . path . dirname ( self . filename ) if metafilename : metafilename += '/' metafilename += '.' + os . path . basename ( self . filename ) + '.METADATA' return metafilename
Returns the filename for the metadata file (not full path). Only used for local files.