未验证 提交 7e2dbc6d 编写于 作者: X Xiangwei Wei 提交者: GitHub

fix Url bug (#1699)

上级 df250c3d
......@@ -117,9 +117,9 @@ public class IoTDBDescriptor {
else if(!urlString.endsWith(".properties")) {
urlString += (File.separatorChar + IoTDBConfig.CONFIG_NAME);
}
// If the url doesn't contain a ":" it's provided as a normal path.
// So we need to add the prefix "file:" to make it a real URL.
if(!urlString.contains(":")) {
// If the url doesn't start with "file:" it's provided as a normal path.
// So we need to add it to make it a real URL.
if(!urlString.startsWith("file:")) {
urlString = "file:" + urlString;
}
try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册