':return: Returns the extension of the filename, if possible, else, \'\'.'

def get_extension(self):

    fname = self.get_file_name()
    extension = fname[(fname.rfind('.') + 1):]
    if (extension == fname):
        return ''
    else:
        return extension
