Skip to content

Allow exporting to hidden files#5795

Open
Trenly wants to merge 4 commits intomicrosoft:masterfrom
Trenly:ExportToHidden
Open

Allow exporting to hidden files#5795
Trenly wants to merge 4 commits intomicrosoft:masterfrom
Trenly:ExportToHidden

Conversation

@Trenly
Copy link
Copy Markdown
Contributor

@Trenly Trenly commented Oct 10, 2025


Microsoft Reviewers: Open in CodeFlow

@Trenly Trenly requested a review from a team as a code owner March 27, 2026 03:50
@github-actions

This comment has been minimized.

@Trenly Trenly requested a review from JohnMcPMS March 27, 2026 03:58
Json::StreamWriterBuilder writerBuilder;
std::string jsonContent = Json::writeString(writerBuilder, packages);
DWORD bytesWritten = 0;
THROW_LAST_ERROR_IF(!WriteFile(fileHandle.get(), jsonContent.c_str(), static_cast<DWORD>(jsonContent.size()), &bytesWritten, nullptr));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potential partial write is not handled. Would be better to have a string helper WriteStringToFile that does it.

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