From 5a2f7dfd9ecd370b967b92709ea091139ebe6b76 Mon Sep 17 00:00:00 2001 From: Allan-QLB Date: Wed, 20 Sep 2023 13:27:48 +0800 Subject: [PATCH] fix directory check for DumpClassCommand --- .../taobao/arthas/core/command/klass100/DumpClassCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/taobao/arthas/core/command/klass100/DumpClassCommand.java b/core/src/main/java/com/taobao/arthas/core/command/klass100/DumpClassCommand.java index abac83f6d3a..d36399dfcc3 100644 --- a/core/src/main/java/com/taobao/arthas/core/command/klass100/DumpClassCommand.java +++ b/core/src/main/java/com/taobao/arthas/core/command/klass100/DumpClassCommand.java @@ -104,7 +104,7 @@ public void process(CommandProcess process) { try { if (directory != null) { File dir = new File(directory); - if (dir.isFile()) { + if (!dir.isDirectory()) { process.end(-1, directory + " :is not a directory, please check it"); return; }