fix directory check for DumpClassCommand

This commit is contained in:
Allan-QLB
2023-09-20 14:15:45 +08:00
committed by hengyunabc
parent 7676282f2c
commit a23d93ba45
@@ -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;
}