WriteToDirectory v ExtractToDirectory consistency #744

Closed
opened 2026-01-29 22:16:47 +00:00 by claunia · 0 comments
Owner

Originally created by @adamhathcock on GitHub (Dec 19, 2025).

Originally assigned to: @adamhathcock, @Copilot on GitHub.

The static method WriteToDirectory now internally calls ExtractToDirectory, which creates a naming inconsistency. Consider either renaming the public method to ExtractToDirectory for consistency, or documenting why WriteToDirectory internally uses ExtractToDirectory to help future maintainers understand the design choice.

I like WriteToDirectory (and async variants) but unsure of ExtractToDirectory.

ExtractToDirectory should probably be removed in favor of things named WriteToDirectory.

All archive and reader types need to have WriteTo options via itself or a parent class

Originally created by @adamhathcock on GitHub (Dec 19, 2025). Originally assigned to: @adamhathcock, @Copilot on GitHub. The static method WriteToDirectory now internally calls ExtractToDirectory, which creates a naming inconsistency. Consider either renaming the public method to ExtractToDirectory for consistency, or documenting why WriteToDirectory internally uses ExtractToDirectory to help future maintainers understand the design choice. I like WriteToDirectory (and async variants) but unsure of ExtractToDirectory. ExtractToDirectory should probably be removed in favor of things named WriteToDirectory. All archive and reader types need to have WriteTo options via itself or a parent class
claunia added the enhancement label 2026-01-29 22:16:47 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#744