important-hamburger-34837
01/14/2024, 12:05 PM# save all results to gcs
remote_dir = os.path.join(f'gs://{DATASETS_BUCKET}', '/path/to/output')
return FlyteDirectory(path='/path/to/output', remote_directory=remote_dir)
but I am getting this error:
Failed to convert outputs of task 'flyte.workflows.wf.task1' at position 0:
Failed to put data from /path/to/output/ to /path/to/output/ (recursive=True).
Original exception: '/path/to/output/htmls/2024/01/14/20240114114757_1a26bf7e-21b3-4e39-84a8-6bf02dff5bc3.txt' and '/path/to/output/htmls/2024/01/14/20240114114757_1a26bf7e-21b3-4e39-84a8-6bf02dff5bc3.txt' are the same file
what could the problem be? what is "same file" ?
thanksnumerous-actor-35946
01/14/2024, 2:56 PMnumerous-actor-35946
01/14/2024, 2:57 PMimportant-hamburger-34837
01/15/2024, 9:20 AMos.path.join
does this: If a segment is an absolute path, then all previous segments are ignored and joining continues from the absolute path segment.
and my /path/to/output
is an absolute path, so it ignores the first gs partaverage-finland-92144
01/15/2024, 2:43 PMimportant-hamburger-34837
01/15/2024, 4:03 PM