Skip to content

Fix applying deltas with new directories#749

Merged
caesay merged 1 commit intovelopack:developfrom
montyc1999:create-parent-dirs-for-new-files
Feb 22, 2026
Merged

Fix applying deltas with new directories#749
caesay merged 1 commit intovelopack:developfrom
montyc1999:create-parent-dirs-for-new-files

Conversation

@montyc1999
Copy link
Contributor

When applying a delta with new files in a new directory, the updater currently fails with:
Error: Patch error: Delta error: No such file or directory (os error 2)

Because the destination directory does not exist when copying the files.

@Keboo Keboo force-pushed the create-parent-dirs-for-new-files branch from 469c5af to e048c9c Compare December 8, 2025 07:22
@codecov
Copy link

codecov bot commented Dec 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 39.43%. Comparing base (1a622e5) to head (e048c9c).
⚠️ Report is 127 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #749      +/-   ##
===========================================
- Coverage    40.91%   39.43%   -1.49%     
===========================================
  Files          244      244              
  Lines        18385    18386       +1     
  Branches      2049     2049              
===========================================
- Hits          7523     7251     -272     
- Misses       10504    10796     +292     
+ Partials       358      339      -19     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@montyc1999
Copy link
Contributor Author

Hi @Keboo @caesay is there anything we can do to get this moving?

Btw the same logic exists in the C# implementation:

var targetPath = Directory.GetParent(finalTarget)!;
if (!targetPath.Exists) targetPath.Create();

It was just missing in the rust implementation.

@caesay caesay merged commit 0efa62c into velopack:develop Feb 22, 2026
58 checks passed
@montyc1999
Copy link
Contributor Author

Thanks!

@caesay It's been a while since the last prerelease, any chance we could get a new one built? Thanks again.

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.

3 participants