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

Make this work on Windows #3

Closed
bugdea1er opened this issue Jan 27, 2024 · 1 comment · Fixed by #26
Closed

Make this work on Windows #3

bugdea1er opened this issue Jan 27, 2024 · 1 comment · Fixed by #26
Labels
help wanted Extra attention is needed

Comments

@bugdea1er
Copy link
Owner

bugdea1er commented Jan 27, 2024

Files and directories are created with mk*temp functions from the unistd.h header. These do not exist on Windows

@bugdea1er bugdea1er changed the title Make it work on Windows Make this work on Windows Jan 29, 2024
@bugdea1er bugdea1er linked a pull request Mar 24, 2024 that will close this issue
@bugdea1er bugdea1er added the help wanted Extra attention is needed label May 11, 2024
@bugdea1er
Copy link
Owner Author

What needs to be done:

  • make_pattern should be updated to return a proper pattern for Windows API
  • create_file should be updated to work on Windows. Seems like GetTempFileNameW is a good choice to create a proper temporary file for a given template
  • create_directory should be updated, but I couldn't find a proper function in Windows
  • Conversion from system error code to a fs::filesystem_error should support Windows GetLastError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant