Feature request - skip overwrite when file contents is identical

Aperta
#244 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
cpp
Ambito
backend

Direzione di ricerca

Start by locating the extraction code that handles an existing destination file and the overwrite or skip choice; the issue does not name files or tests. Check how archive formats expose per-file hashes and how extraction currently writes files. Done means extraction can skip writing when the existing file’s contents match, using hashes where available; the issue does not specify behavior for formats without hashes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Currently, when during extraction an existing file with the same name as the archived file is encountered, one can either overwrite or skip. It would be great to have the option of overwriting only when the files are actually different.

Benefits are:

  • media sensitive to writes will not suffer from useless writes;
  • media in which reads are much faster than writes could complete extraction much faster.

Like rsync, it makes sense to do this based on hashes; in particular, for archive formats that have per file hashes (even something lousy as CRC32) we can compute the hash only for the existing file and then compare.

Thanks in advance.

Lingua principale
C++
Stelle
4.6k
Fork
519
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ip7z/7zip

Tutte le issue di ip7z/7zip

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.