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

Fix Creating Directories on Windows for Synthetic Annotation #45

Closed
wants to merge 3 commits into from

Conversation

smbanx
Copy link
Collaborator

@smbanx smbanx commented Oct 19, 2024

The command mkdir -p <DIRECTORY> is not a valid terminal command on Windows, leading to errors when synthetic annotation is performed. With this change, I replace the mkdir -p <DIRECTORY> system calls with std::filesystem::create_directory(<DIRECTORY>) function calls. The Filesystem library is available as of C++17, and the function create_directory() handles the creation of nested directories in the same way as mkdir -p.

With this simple change, synthetic annotation should work properly on Windows, Linux, and MacOS.

@smbanx smbanx added the bug Something isn't working label Oct 19, 2024
@smbanx smbanx requested a review from bnbailey-psl October 19, 2024 23:31
@bnbailey-psl
Copy link
Contributor

Merged in Helios v1.3.20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants