[Request]: Add directory creation utility to ApplicationRoot

Open Beginner friendly
#2,215 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
swift
Domain
cli

Research direction

Start at the ApplicationRoot definition and inspect how its storage path is represented and used. Add coverage for an existing directory, a missing directory, and missing intermediate directories; done means the static method creates the complete path without runtime errors.

Written by the indexing model from the issue text.

Description

Feature or enhancement request details

Feature Description

To make ApplicationRoot more practical and prevent runtime errors when managing storage paths, we can introduce a utility method that ensures the root directory exists on disk.

Proposed Changes

  • Add createDirectoryIfNeeded() static method to ApplicationRoot.
  • Automatically create the directory and any intermediate directories if they do not already exist.
Code of Conduct
  • I agree to follow this project's Code of Conduct
Dominant language
Swift
Stars
50.1k
Forks
1.8k
Avg merge
2d 2h
Merged PRs (30d)
19

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apple/container

All issues in apple/container

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.