Skip to content

Commit f99bc72

Browse files
committed
Minor comment update. Could alter the code to try variations here and possibly succeed in this way.
1 parent 95ccb18 commit f99bc72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Zip/FastZip.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ void ProcessFile(object sender, ScanEventArgs e)
514514
try {
515515
// The open below is equivalent to OpenRead which gaurantees that if opened the
516516
// file will not be changed by subsequent openers, but precludes opening in some cases
517-
// were it could succeed.
517+
// were it could succeed. ie the open may fail as its already open for writing and the share mode should reflect that.
518518
using (FileStream stream = File.Open(e.Name, FileMode.Open, FileAccess.Read, FileShare.Read)) {
519519
ZipEntry entry = entryFactory_.MakeFileEntry(e.Name);
520520
outputStream_.PutNextEntry(entry);

0 commit comments

Comments
 (0)