-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Remove comment in ZipFile.Create.cs #86927
Conversation
In dotnet#85491 the stream-based version of the `DoCreateFromDirectory` override copy-pasted comments from the string-based version ```csharp // Rely on Path.GetFullPath for validation of sourceDirectoryName and destinationArchive ``` The last clause of that comment is not relevant in the stream-based version (the argument is `Stream destination`) so deleted that clause. It's possible that the other comment is also misleading as we test the `compressionLevel ` argument just above (unlike in the `String destinationArchive` version ```csharp // Checking of compressionLevel is passed down to DeflateStream and the IDeflater implementation // as it is a pluggable component that completely encapsulates the meaning of compressionLevel. ```
Tagging subscribers to this area: @dotnet/area-system-io-compression Issue DetailsIn #85491 the stream-based version of the // Rely on Path.GetFullPath for validation of sourceDirectoryName and destinationArchive The last clause of that comment is not relevant in the stream-based version (the argument is It's possible that the other comment is also misleading as we test the // Checking of compressionLevel is passed down to DeflateStream and the IDeflater implementation
// as it is a pluggable component that completely encapsulates the meaning of compressionLevel.
|
@carlossanlop, care to comment on if they second comment also should be deleted? |
src/libraries/System.IO.Compression.ZipFile/src/System/IO/Compression/ZipFile.Create.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Carlos Sánchez López <1175054+carlossanlop@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI failure is unrelated: #82637 |
Thanks @IDisposable ! |
In #85491 the stream-based version of the
DoCreateFromDirectory
override copy-pasted comments from the string-based version// Rely on Path.GetFullPath for validation of sourceDirectoryName and destinationArchive
The last clause of that comment is not relevant in the stream-based version (the argument is
Stream destination
) so deleted that clause.It's possible that the other comment is also misleading as we test the
compressionLevel
argument just above (unlike in theString destinationArchive
version)