Add CleanupJob for removing non-existent files #10929
Labels
cleanup-ops
FirstTimeCodeContribution
Triggers GitHub Greeter Workflow
good first issue
An issue intended for project-newcomers. Varies in difficulty.
(This is #7288 (comment))
As user, I have renamed files, but JabRef still has the old links. JabRef perfectly links the new files, but also keeps the broken links. I want to have them removed.
Implement
org.jabref.logic.cleanup.RemoveLinksToNotExistentFiles
.That class is similar to
org.jabref.logic.cleanup.MoveFilesCleanup
, but usesorg.jabref.logic.externalfiles.LinkedFileHandler#findExistingFile
. Links withorg.jabref.model.entry.LinkedFile#isOnlineLink()
do not exist in the file system, but have to kept, too.When testing, please make use of JUnit's
@TempDir
or let inspire yourself with org.jabref.logic.search.DatabaseSearcherWithBibFilesTest.The text was updated successfully, but these errors were encountered: