Skip to content

Commit

Permalink
fix(core.runtime): 修复插件中 context.getDatabasePath(name) 方法当 name 传入全路径…
Browse files Browse the repository at this point in the history
…时运行异常的问题

对于这种携带路径的 name, makeSubName 方法返回原始值不添加前缀
  • Loading branch information
Heart-Beats committed Apr 21, 2024
1 parent 7d5a231 commit 88d252b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,10 @@ public String[] databaseList() {
}

private String makeSubName(String name) {
return getSubDirName() + "_" + name;
if (name.indexOf(File.separatorChar) < 0) {
return getSubDirName() + "_" + name;
}
return name;
}

private static File ensurePrivateDirExists(File dir) {
Expand Down

0 comments on commit 88d252b

Please sign in to comment.