test_class.file: gazeplay-core/src/test/java/net/gazeplay/commons/utils/FileUtilsTest.java
test_class.identifier: FileUtilsTest
test_case.body: @Test
      void shouldDeleteShallowDirectory() throws IOException {
          File parent = new File("parent");
          parent.mkdir();
          File test = new File("parent/test.txt");
          test.createNewFile();
  
          assertTrue(parent.isDirectory());
          assertTrue(test.isFile());
  
          FileUtils.deleteDirectoryRecursively(parent);
  
          assertFalse(parent.isDirectory());
          assertFalse(test.isFile());
      }
test_case.class_method_signature: FileUtilsTest.shouldDeleteShallowDirectory()
test_case.full_signature: @Test void shouldDeleteShallowDirectory()
test_case.identifier: shouldDeleteShallowDirectory
test_case.invocations: mkdir createNewFile assertTrue isDirectory assertTrue isFile deleteDirectoryRecursively assertFalse isDirectory assertFalse isFile
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldDeleteShallowDirectory()
focal_class.file: gazeplay-core/src/main/java/net/gazeplay/commons/utils/FileUtils.java
focal_class.identifier: FileUtils
focal_class.class_method_signature: FileUtils.deleteDirectoryRecursively(File file)
focal_class.full_signature: public static void deleteDirectoryRecursively(File file)
focal_class.identifier: deleteDirectoryRecursively
focal_class.modifiers: public static
focal_class.parameters: (File file)
focal_class.return: void
focal_class.signature: void deleteDirectoryRecursively(File file)
focal_method.body: public static void deleteDirectoryRecursively(File file) {
          File[] contents = file.listFiles();
          if (contents != null) {
              for (File f : contents) {
                  deleteDirectoryRecursively(f);
              }
          }
          boolean deleted = file.delete();
          if (deleted) {
              log.debug("File {} was deleted", file.getAbsolutePath());
          }
      }
focal_method.class_method_signature: FileUtils.deleteDirectoryRecursively(File file)
focal_method.full_signature: public static void deleteDirectoryRecursively(File file)
focal_method.identifier: deleteDirectoryRecursively
focal_method.invocations: listFiles deleteDirectoryRecursively delete debug getAbsolutePath
focal_method.modifiers: public static
focal_method.parameters: (File file)
focal_method.return: void
focal_method.signature: void deleteDirectoryRecursively(File file)