<#7490 feat(copilot): preserve nested subdirectori...
# flyte-github
a
#7490 feat(copilot): preserve nested subdirectories in multipart blob uploads Pull request opened by k1sauce Why are the changes needed? Shell Glob matching in the SDK extras should work (pathlib.Path.glob supports **), but Glob serializes to a Dir on the wire, and in real remote execution flytecopilot uploads /var/outputs// as a MULTIPART blob. This is because copilot's multipart uploader drops nested subdirectories. Glob and a bare Dir output fail identically here. What changes were proposed in this pull request? Walk into directories and key each file by its relative path from the blob root (filepath.Rel + ConstructReference with the path segments), mirroring the download side, which already reconstructs nested keys. Top-level files are unaffected — their relative path is just the basename, so keys are unchanged. How was this patch tested? Add an upload-multipart-nested test covering a root file, nested files, and a cross-subdir basename collision. Labels Please add one or more of the following labels to categorize your PR: • added: For new features. • changed: For changes in existing functionality. • deprecated: For soon-to-be-removed features. • removed: For features being removed. • fixed: For any bug fixed. • security: In case of vulnerabilities This is important to improve the readability of release notes. Setup process Screenshots Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. Related PRs Stack If you do use
git town
to manage PR Stacks, the stack relevant to this PR will show below. Otherwise, you can ignore this section. Docs link flyteorg/flyte