Skip to content

Fix template asset copy failures for nested output paths#2056

Open
Tutez64 wants to merge 1 commit intoopenfl:developfrom
Tutez64:bugfix/template-asset-copy-directory
Open

Fix template asset copy failures for nested output paths#2056
Tutez64 wants to merge 1 commit intoopenfl:developfrom
Tutez64:bugfix/template-asset-copy-directory

Conversation

@Tutez64
Copy link
Copy Markdown

@Tutez64 Tutez64 commented May 8, 2026

AssetHelper.copyAsset can write generated/template asset data directly to a destination path, but it did not ensure the destination directory existed first.

This caused writes to nested generated paths to fail when no platform-specific caller created the parent directory beforehand.

The fix creates the destination directory before copying or writing the asset. A standalone repro is included to demonstrate the failure on Windows without the fix and the success case with it.
lime-generated-template-asset-repro.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant