How should 7-Zip handle files being used by another process?

Open
#254 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
cpp
Domain
backend

Research direction

The issue describes compression failing when a source file is locked, but does not identify relevant files or tests. Read the linked SourceForge discussion first, then trace how 7-Zip handles file access during compression. Clarify the desired behavior and define how locked files should be handled before estimating completion.

Written by the indexing model from the issue text.

Description

Currently trying to compress files while one of them is locked by other process result on The process cannot access the file because it is being used by another process. and the file not getting archived. The only discussion about this behavior that I could find was in the SourceForge forums and feels incomplete (at least I could not understand the argument given).

I opened this issue largely for two reasons: so it serve to document this behavior and, maybe, check if this behavior can be improved. Currently my workaround for this is having to copy the file I'm working, compress it and then delete the temporary copy.

Dominant language
C++
Stars
4.6k
Forks
519
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ip7z/7zip

All issues in ip7z/7zip

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.