

def get_data_file_path(obj_dir):
    files = []
    for attempt in range((RETRIES + 1)):
        try:
            files = sorted(listdir(obj_dir), reverse=True)
            break
        except Exception:
            if (attempt < RETRIES):
                time.sleep(1)
            else:
                raise
    for filename in files:
        return path_join(obj_dir, filename)

dataset/ETHPy150Open openstack/swift/test/probe/test_object_failures.py get_data_file_path/original