Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support creating parent directories as needed #518

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mcieno
Copy link

@mcieno mcieno commented Jan 26, 2024

I oftentimes find myself needing a multilevel folder structure in the tmp folder (e.g., tmp/cmd1/..., tmp/cmd2/...).

Unfortunately, tmp_dir = tmp/cmd1 fails unless tmp/ already exists.
Although this is very easy to work around by creating the parent directories beforehand, I believe that Air should be able to recursively create parents by default.

This change is equivalent to running mkdir -p "$tmp_dir" instead of mkdir "$tmp_dir".

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.

None yet

1 participant