Skip to content

Directory check should respect relative paths #13017

@koppor

Description

@koppor

Setting:

  1. C:\TEMP\JabRef\test\demo contains demo.bib and sub directory lib
    Image
  2. In library properties, the check says, the path lib does not exist
    Image

The path exists.

One needs to resolve (from the Path object) of the path of the bib file to check.

See also org.jabref.model.database.BibDatabaseContext#getFileDirectories. The method cannot be directly used, because it call getFileDirectoryPath, which makes the path absolute.

(Follow-up to #12867)

Metadata

Metadata

Assignees

Labels

good first issueAn issue intended for project-newcomers. Varies in difficulty.📌 Pinned📍 AssignedAssigned by assign-issue-action (or manually assigned)

Type

No fields configured for task.

Projects

Status
Done
Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions