Skip to content

Enable automatic creation of required nested directories#48

Open
vs-abhinav-dev wants to merge 4 commits intodanihek:mainfrom
vs-abhinav-dev:main
Open

Enable automatic creation of required nested directories#48
vs-abhinav-dev wants to merge 4 commits intodanihek:mainfrom
vs-abhinav-dev:main

Conversation

@vs-abhinav-dev
Copy link
Copy Markdown

This PR updates check_output_dir() to handle creation of nested directories, similar to the mkdir -p command.

changes made

  • make mkdir_p to create nested directory and used it in check_output_dir
  • added a header <errno.h> for mkdir_p() error handling

Reason
The previous implementation only supported single-level directory creation, causing failures for paths with multiple missing subdirectories.

Testing was done locally, can confirm it works.

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.

1 participant