Ensure parent directories are created when writing driver import file#434
Ensure parent directories are created when writing driver import file#434
Conversation
|
There was a problem hiding this comment.
Pull request overview
This PR adds safety logic to ensure parent directories exist before writing the driver import file. The change prevents potential FileNotFoundException when the output path's parent directories don't exist.
Key Changes:
- Added directory creation check in
writeOutputFilemethod to create parent directories if they don't exist
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
persist-core/src/main/java/io/ballerina/persist/nodegenerator/DriverResolver.java
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #434 +/- ##
==========================================
- Coverage 85.98% 85.96% -0.03%
==========================================
Files 68 68
Lines 6593 6596 +3
Branches 880 881 +1
==========================================
+ Hits 5669 5670 +1
- Misses 661 662 +1
- Partials 263 264 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|



Purpose
Examples
N/A
Checklist
Linked to an issueUpdated the specificationUpdated the changelogAdded tests