Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Advanced ETag Comparison now supported (#3015)
* Update FileIO.swift sha-256 digest set when file is written to system * Introduced new streamFile method Introduced new streamFile method which allows for advancedETag comparison. Deprecated the old one. * Updated Unit Tests Updates to remove deprecated warnings by using the new streamFile() method. Also removed some other deprecation warnings. * Added more documentation * Removed unnecessary CryptoKit import * added closure return types * incorporated first round of @0xTim's feedback * added test cases to account for advanced/simple etags * Incorporated PR comments - adjusted faulty comment - access storage directly to avoid concurrent overwrites of the entire storage * Added test for legacy streamFile * Deprecated method to silence warnings * Warning fixes * following @gwynne's style advice :)
- Loading branch information
1 parent
0fb4f1d
commit 526a000
Showing
4 changed files
with
260 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.