mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
WriteToDirectory v ExtractToDirectory consistency #744
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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