

def GuessHistoryPaths(self, username):
    'Take a user and return guessed full paths to History files.\n\n    Args:\n      username: Username as string.\n\n    Returns:\n      A list of strings containing paths to look for history files in.\n\n    Raises:\n      OSError: On invalid system in the Schema\n    '
    fd = aff4.FACTORY.Open(self.client_id, token=self.token)
    system = fd.Get(fd.Schema.SYSTEM)
    user_info = flow_utils.GetUserInfo(fd, username)
    if (not user_info):
        self.Error('Could not find homedir for user {0}'.format(username))
        return
    paths = []
    if (system == 'Windows'):
        path = '{app_data}\\Mozilla\\Firefox\\Profiles/'
        paths.append(path.format(app_data=user_info.special_folders.app_data))
    elif (system == 'Linux'):
        path = '{homedir}/.mozilla/firefox/'
        paths.append(fd.format(homedir=user_info.homedir))
    elif (system == 'Darwin'):
        path = '{homedir}/Library/Application Support/Firefox/Profiles/'
        paths.append(path.format(homedir=user_info.homedir))
    else:
        raise OSError('Invalid OS for Chrome History')
    return paths

dataset/ETHPy150Open google/grr/grr/lib/flows/general/webhistory.py FirefoxHistory.GuessHistoryPaths/VarMisuse@134/294 `path`->`fd`