public static List<FileNode> listDirByPath(String path) {
        List<FileNode> dirList = new ArrayList<>();
        File logDir = new File(path);
        if (logDir.isFile()) {
            throw new BusException(StrUtil.format("Directory path {} is a file.", path));
        }
        File[] files = logDir.listFiles();
        if (Asserts.isNull(files)) {
            throw new BusException(StrUtil.format("Directory path {} does not exist.", path));
        }
        for (File file : files) {
            FileNode fileNode = new FileNode(file.getName(), file.isDirectory(), 0, file.getAbsolutePath());
            if (!fileNode.isDir()) {
                fileNode.setSize(file.length());
            }
            dirList.add(fileNode);
        }
        return dirList;
    }
@Ignore
    @Test
    public void testListDirByPath() {
        List<FileNode> dirList = DirUtil.listDirByPath(DirConstant.getRootLogsPath());
        Assertions.assertThat(dirList).isNotNull();
    }