mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 15:56:57 +00:00
bugfix/tweaked the path for glossary folder
This commit is contained in:
parent
e75e190bf7
commit
e0427ef1b3
@ -3514,8 +3514,8 @@ object Glossary extends MdcLoggable {
|
||||
}
|
||||
|
||||
private def getListOfFiles():List[File] = {
|
||||
val currentDir = new File(".").getCanonicalPath
|
||||
val d = new File(currentDir + "/obp-api/src/main/docs/glossary")
|
||||
val d = new File(getClass.getResource("").toURI.toString.replaceFirst("target/.*", "").replace("file:", ""),
|
||||
"src/main/docs/glossary")
|
||||
if (d.exists && d.isDirectory) {
|
||||
d.listFiles.filter(_.isFile).filter(_.getName.endsWith(".md")).toList
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user