Skip to content

Fix exceptions thrown from directory::copy#211

Merged
bugdea1er merged 6 commits into
mainfrom
directory-exceptions
May 5, 2025
Merged

Fix exceptions thrown from directory::copy#211
bugdea1er merged 6 commits into
mainfrom
directory-exceptions

Conversation

@bugdea1er
Copy link
Copy Markdown
Owner

According to the C++ standard:

When a call by the implementation to an operating system or other underlying API results in an error that prevents the function from meeting its specifications, an exception of type filesystem_error shall be thrown. For functions with a single path argument, that argument shall be passed to the filesystem_error constructor with a single path argument...

This fixes the exception thrown by directory::copy and adds tests for it

@bugdea1er bugdea1er requested a review from Copilot May 5, 2025 17:45

This comment was marked as outdated.

@bugdea1er bugdea1er merged commit a54ebb3 into main May 5, 2025
16 checks passed
@bugdea1er bugdea1er deleted the directory-exceptions branch May 5, 2025 18:46
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.

2 participants