SoftVarE-Group / MibTeX

Minimalistic tool to manage your references with BibTeX
GNU Lesser General Public License v3.0
2 stars 1 forks source link

Bugfix in Concatenating Empty Paths #41

Closed pmbittner closed 3 years ago

pmbittner commented 3 years ago

Concatenating java.io.Files is done by

File parentDir = ...;
new File(parentDir , "relative/path.txt")

When parentDir is empty (e.g., new File("")), the resulting string will be /relative/path.txt whereas we assumed it to be relative/path.txt in MibTeX.

This PR introduces a dedicated FileUtils.concat method to fix this issue.