test_class.file: jcodes-core/src/test/java/com/czarea/jcodes/util/FileUtilTest.java
test_class.identifier: FileUtilTest
test_case.body: @Test
      public void testGetFileList() {
          List<File> files = FileUtil.getFileList("D:\\lvji_git\\lvji-codes\\templates\\java\\guide");
          files.stream().forEach(item -> {
              System.out.println("name is " + item.getName());
              String relativePath = FileUtil.getRelativePath("D:\\lvji_git\\lvji-codes\\templates\\java\\guide", item.getAbsolutePath());
              if (relativePath.contains("\\")) {
                  System.out.println("relative path is " + relativePath.substring(0, relativePath.lastIndexOf("\\")));
              } else {
                  System.out.println("relative path is " + relativePath);
              }
          });
      }
test_case.class_method_signature: FileUtilTest.testGetFileList()
test_case.full_signature: @Test public void testGetFileList()
test_case.identifier: testGetFileList
test_case.invocations: getFileList forEach stream println getName getRelativePath getAbsolutePath contains println substring lastIndexOf println
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetFileList()
focal_class.file: jcodes-core/src/main/java/com/czarea/jcodes/util/FileUtil.java
focal_class.identifier: FileUtil
focal_class.class_method_signature: FileUtil.copyDir(String sourcePath, String targetPath)
focal_class.full_signature: public static void copyDir(String sourcePath, String targetPath)
focal_class.identifier: copyDir
focal_class.modifiers: public static
focal_class.parameters: (String sourcePath, String targetPath)
focal_class.return: void
focal_class.signature: void copyDir(String sourcePath, String targetPath)
focal_class.class_method_signature: FileUtil.getFileList(String path)
focal_class.full_signature: public static List<File> getFileList(String path)
focal_class.identifier: getFileList
focal_class.modifiers: public static
focal_class.parameters: (String path)
focal_class.return: List<File>
focal_class.signature: List<File> getFileList(String path)
focal_class.class_method_signature: FileUtil.getRelativePath(String sourcePath, String targetPath)
focal_class.full_signature: public static String getRelativePath(String sourcePath, String targetPath)
focal_class.identifier: getRelativePath
focal_class.modifiers: public static
focal_class.parameters: (String sourcePath, String targetPath)
focal_class.return: String
focal_class.signature: String getRelativePath(String sourcePath, String targetPath)
focal_method.body: public static List<File> getFileList(String path) {
          List<File> list = new ArrayList<>();
          File dir = new File(path);
          File[] files = dir.listFiles();
          if (files != null) {
              for (int i = 0; i < files.length; i++) {
                  if (files[i].isDirectory()) {
                      list.addAll(getFileList(files[i].getAbsolutePath()));
                  } else {
                      list.add(files[i]);
                  }
              }
          }
          return list;
      }
focal_method.class_method_signature: FileUtil.getFileList(String path)
focal_method.full_signature: public static List<File> getFileList(String path)
focal_method.identifier: getFileList
focal_method.invocations: listFiles isDirectory addAll getFileList getAbsolutePath add
focal_method.modifiers: public static
focal_method.parameters: (String path)
focal_method.return: List<File>
focal_method.signature: List<File> getFileList(String path)