Problem when create zip in network folder
まだ誰も着手していません。
評価
調査の方向性
まず、エントリポイント CreateZip(string zipFileName, string sourceDirectory, bool recurse, string fileFilter, string directoryFilter) と呼び出し File.Create(zipFileName) を見つけます。作成後にネットワークフォルダーのファイルが見つからない場合にどのように処理されるかを調査し、作成後に削除されるという報告されたシナリオを開始ケースとして使用します。処理を続行する前に、正しいログによって失敗が処理されるか、zip が存在することを確実に確認できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
I use this function "CreateZip(string zipFileName, string sourceDirectory, bool recurse, string fileFilter, string directoryFilter)" to create the zip in a network folder.
Sometimes I receive the error "Exception: System.IO.FileNotFoundException: Unable to find the specified file." I guess that some problem occurs when do "File.Create(zipFileName)". Maybe the impact come from the connection with network folder.
Reproduction Code
No response
Steps to reproduce
It's very hard to reproduce,
But I think we can do a cheat to reproduce.
when the zip file was created by File.Create(zipFileName), delete this file and continue
Expected behavior
My idea is have a check to ensure that the zipfile must be created before send to the next function or throw a correct log.
Operating System
Windows
Framework Version
.NET Framework 4.x
Tags
ZIP
Additional context
I use version 1.4.2
- 主要言語
- C#
- スター
- 3.9k
- フォーク
- 1k
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
icsharpcode/SharpZipLib のほかの issue
-
*no response* bug
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
icsharpcode/SharpZipLib#905 · コメント 1 件 ·
-
bug bzip2
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
icsharpcode/SharpZipLib#904 ·
-
SetLevel in ZipFile オープンenhancement zip
難易度 2/5 1〜2日 初心者へのやさしさ 55/100
icsharpcode/SharpZipLib#903 ·
-
*no response* bug
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
icsharpcode/SharpZipLib#901 · コメント 1 件 ·
-
*no response* bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
icsharpcode/SharpZipLib#894 · コメント 1 件 ·
icsharpcode/SharpZipLib の issue をすべて見る
似ている issue
-
core dependencies
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
bug frontend good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Down / Waiting for removal
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100