-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add CleanupJob for removing non-existent files #10929
Copy link
Copy link
Closed
Labels
FirstTimeCodeContributionTriggers GitHub Greeter WorkflowTriggers GitHub Greeter Workflowcomponent: cleanup-opsgood first issueAn issue intended for project-newcomers. Varies in difficulty.An issue intended for project-newcomers. Varies in difficulty.
Metadata
Metadata
Assignees
Labels
FirstTimeCodeContributionTriggers GitHub Greeter WorkflowTriggers GitHub Greeter Workflowcomponent: cleanup-opsgood first issueAn issue intended for project-newcomers. Varies in difficulty.An issue intended for project-newcomers. Varies in difficulty.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Done
StatusShow more project fields
Done
(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
@TempDiror let inspire yourself with org.jabref.logic.search.DatabaseSearcherWithBibFilesTest.