mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 07:25:04 +02:00
Treat file overwrite and marked file overwrite differently
This commit is contained in:
parent
2d64409542
commit
4ce385b262
2 changed files with 24 additions and 7 deletions
|
|
@ -30,6 +30,8 @@ def _resolve_no_delete(_path: PurePath, conflict: ConflictType) -> FileConflictR
|
|||
# Update files
|
||||
if conflict == ConflictType.FILE_OVERWRITTEN:
|
||||
return FileConflictResolution.DESTROY_EXISTING
|
||||
if conflict == ConflictType.MARKED_FILE_OVERWRITTEN:
|
||||
return FileConflictResolution.DESTROY_EXISTING
|
||||
# But do not delete them
|
||||
return FileConflictResolution.KEEP_EXISTING
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue