Skip to content
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

Problem when create zip in network folder #861

Open
viettieubao opened this issue Apr 11, 2024 · 0 comments
Open

Problem when create zip in network folder #861

viettieubao opened this issue Apr 11, 2024 · 0 comments
Labels
bug zip Related to ZIP file format

Comments

@viettieubao
Copy link

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

@github-actions github-actions bot added the zip Related to ZIP file format label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug zip Related to ZIP file format
Projects
None yet
Development

No branches or pull requests

1 participant