'discover the extension (to get type of extraction/compression) from file name'

def auto_discover_ext(self, file_path):

    (name, ext) = self._splitext(os.path.basename(file_path))
    return (name, ext.lstrip('.'))
