'Extract the device name from an object path.  Returns "UNKNOWN" if the
path could not be extracted successfully for some reason.
:param object_file: the path to a database file.'

def extract_device(self, object_file):

    match = self.extract_device_re.match(object_file)
    if match:
        return match.groups()[0]
    return 'UNKNOWN'
