mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
fix directory check for DumpClassCommand
This commit is contained in:
@@ -104,7 +104,7 @@ public class DumpClassCommand extends AnnotatedCommand {
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user