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

The process cannot access the file 'data.z01' because it is being used by another process. #12

Open
0x42h opened this issue Apr 18, 2021 · 0 comments

Comments

@0x42h
Copy link

0x42h commented Apr 18, 2021

mainFile points to a multipart zip file spanned from data.zip to data.z04.

basePath contains the path to where the mainFile is.

  using (ZipFile zip = ZipFile.Read(mainFile))
  {
      zip.ExtractAll(tempDir, ExtractExistingFileAction.OverwriteSilently);
  }
  Directory.Delete(basePath, true); // System.IO.IOException: 'The process cannot access the file 'data.z01' because it is being used by another process.'

Why am I getting a warning that data.z01 is in use by another process? Even weider; why only that file, while all the other files go through the exact same process? Am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant