resovle config/metrics as a destination folder (#1678)

This commit is contained in:
chenxyz707
2019-04-09 21:05:42 +08:00
committed by agapple
parent 8cb85753bb
commit 67faf0e03e

View File

@@ -65,7 +65,8 @@ public class CanalStater {
public boolean accept(File pathname) { public boolean accept(File pathname) {
String filename = pathname.getName(); String filename = pathname.getName();
return pathname.isDirectory() && !"spring".equalsIgnoreCase(filename); return pathname.isDirectory() && !"spring".equalsIgnoreCase(filename) &&
!"metrics".equalsIgnoreCase(filename);
} }
}); });
if (instanceDirs != null && instanceDirs.length > 0) { if (instanceDirs != null && instanceDirs.length > 0) {