Skip to content

Add createDirectoryIfNeeded method to ApplicationRoot - #2216

Open
denizguney wants to merge 1 commit into
apple:mainfrom
denizguney:patch-3
Open

Add createDirectoryIfNeeded method to ApplicationRoot#2216
denizguney wants to merge 1 commit into
apple:mainfrom
denizguney:patch-3

Conversation

@denizguney

Copy link
Copy Markdown

Implement a utility method to ensure the application root directory and any intermediate directories exist on disk.

Adds a utility method to ensure the application root directory exists on disk, preventing runtime path resolution errors. Related to issue #2215

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

[Why is this change needed?]

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

 Implement a utility method to ensure the application root directory and any intermediate directories exist on disk.
@jglogan

jglogan commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Why is this needed? ApplicationRoot isn't meant to mutate anything.

@denizguney

Copy link
Copy Markdown
Author

"Although ApplicationRoot itself is primarily designed to represent path structures, ensuring that the root directory and its intermediate paths exist on disk prevents runtime path resolution and I/O errors during container initialization. This utility method safely guarantees that the required directory structure is initialized prior to execution, avoiding unhandled exceptions when components attempt to write or access path targets."

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.

2 participants