quick-helicopter-88984
08/13/2024, 5:53 PMUSER:AssertionError: error=Expected a directory, but the given uri '/tmp/flyte-9lq_c257/sandbox/local_flytekit/44d6ea3a6ffa4d930e874e79131e4c3fimsop046/tmphwg8139l' is not a directory.@task(retries=0)  # type: ignore [misc]
def dummy_task(input: str) -> FlyteDirectory:
    working_dir = current_context().working_directory
    local_dir = Path(tempfile.mkdtemp(dir=working_dir))
    out_path = local_dir / "test.txt"
    abs_path = out_path.absolute()
    with abs_path.open("w") as f:
        f.write(input)
    # This fails remotely
    return FlyteDirectory(str(local_dir.absolute()))
    # But this succeeds!
    # return str(local_dir.absolute())quick-helicopter-88984
08/13/2024, 5:58 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
quick-helicopter-88984
08/13/2024, 6:22 PMquick-helicopter-88984
08/13/2024, 6:23 PM