Bug 421567

Summary: File name collissions in archive function
Product: [Applications] kdenlive Reporter: hadmut
Component: User Interface & MiscellaneousAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 20.04.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 456346    

Description hadmut 2020-05-15 13:32:07 UTC
Hi,

I had a project with two image files (png) with the same name, one of the files directly added to the clip list, the other used as an image in a title clip. Works without any problems when generating a video. 

But when creating an archive, there's a name collission. kdenlive shows a request whether to overwrite or rename. It's not much of a problem to rename it, but this is not really an 'archive'. Would be better to have a subdirectory for each title clip etc. 

A good option would be to detect, whether files have the same content (or in fact are the same file) and just don't ask.
Comment 1 Jean-Baptiste Mardelle 2024-02-02 09:31:36 UTC
Git commit 273b8d99070578eb4af93aeb88adbc51bcd9603a by Jean-Baptiste Mardelle.
Committed on 02/02/2024 at 09:31.
Pushed by mardelle into branch 'release/24.02'.

Fix duplicated filenames or multiple uses not correctly handled in archiving
Related: bug 456346

M  +2    -4    src/doc/documentchecker.cpp
M  +13   -3    src/project/dialogs/archivewidget.cpp
M  +1    -0    src/project/dialogs/archivewidget.h
M  +2    -1    src/project/dialogs/projectsettings.cpp
M  +39   -2    src/titler/titlewidget.cpp
M  +5    -1    src/titler/titlewidget.h

https://invent.kde.org/multimedia/kdenlive/-/commit/273b8d99070578eb4af93aeb88adbc51bcd9603a