test_class.file: micro-s3/src/test/java/com/oath/micro/server/s3/DirectoryCleanerTest.java
test_class.identifier: DirectoryCleanerTest
test_case.body: @Test
      public void clean() throws IOException {
  
          Path dir = Files.createTempDirectory("test");
          DirectoryCleaner cleaner = new DirectoryCleaner(
                                                          dir.toString());
          Path file = Files.createTempFile(dir, "a", "b");
          Assert.assertTrue(Files.exists(file));
          cleaner.clean();
          Assert.assertFalse(Files.exists(file));
  
      }
test_case.class_method_signature: DirectoryCleanerTest.clean()
test_case.full_signature: @Test public void clean()
test_case.identifier: clean
test_case.invocations: createTempDirectory toString createTempFile assertTrue exists clean assertFalse exists
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void clean()
focal_class.declarator: temporaryDirectory
focal_class.modifier: private final
focal_class.original_string: private final String temporaryDirectory;
focal_class.type: String
focal_class.var_name: temporaryDirectory
focal_class.file: micro-s3/src/main/java/com/oath/micro/server/s3/DirectoryCleaner.java
focal_class.identifier: DirectoryCleaner
focal_class.class_method_signature: DirectoryCleaner.DirectoryCleaner(@Value("${s3.temp.dir:#{null}}") String temporaryDirectory)
focal_class.full_signature: @Autowired public  DirectoryCleaner(@Value("${s3.temp.dir:#{null}}") String temporaryDirectory)
focal_class.identifier: DirectoryCleaner
focal_class.modifiers: @Autowired public
focal_class.parameters: (@Value("${s3.temp.dir:#{null}}") String temporaryDirectory)
focal_class.signature:  DirectoryCleaner(@Value("${s3.temp.dir:#{null}}") String temporaryDirectory)
focal_class.class_method_signature: DirectoryCleaner.clean()
focal_class.full_signature: @PostConstruct public void clean()
focal_class.identifier: clean
focal_class.modifiers: @PostConstruct public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clean()
focal_method.body: @PostConstruct
      public void clean() throws IOException {
          if (temporaryDirectory != null && new File(temporaryDirectory).exists()) {
              Path directory = FileSystems.getDefault()
                                          .getPath(temporaryDirectory);
              Files.walkFileTree(directory, new CleanupFileVisitor(directory));
          }
      }
focal_method.class_method_signature: DirectoryCleaner.clean()
focal_method.full_signature: @PostConstruct public void clean()
focal_method.identifier: clean
focal_method.invocations: exists getPath getDefault walkFileTree
focal_method.modifiers: @PostConstruct public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void clean()