'Return base file name of file to store Status/UID info in.'

def getfolderbasename(self):

    if (not self.name):
        basename = '.'
    else:
        basename = self.name.replace('/', '.')
    basename = re.sub('(^|\\/)\\.$', '\\1dot', basename)
    return basename
