Fix: ensure OneDrive config directory exists before writing file#609
Fix: ensure OneDrive config directory exists before writing file#609ShortTimeNoSee wants to merge 1 commit intocryptomator:developfrom
Conversation
Adds config_file.parentFile.mkdirs() before writing auth_config_onedrive.json. This'll prevent build failure on clean environments (Termux, CI, Docker) where presentation/src/main/res/raw doesn't exist. Safe for all platforms. No effect when directory already exists.
WalkthroughThe change modifies presentation/prebuild.gradle to ensure the parent directories for a target JSON configuration file are created before writing. It adds a step to create the directory path prior to file output, altering the write path logic accordingly. No other control flow or error handling adjustments are introduced. Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This adds
config_file.parentFile.mkdirs()inpresentation/prebuild.gradleto prevent build failures in clean environments (like Termux, CI containers) wheneverpresentation/src/main/res/raw/doesn't exist yet.This change is platform-safe and has no effect when the directory already exists.