public static void deleteDirectory(File directory) throws IOException {
        checkNotNull(directory, "directory");

        guardIfNotThreadSafe(FileUtils::deleteDirectoryInternal, directory);
    }
@Test
    void testDeleteNonExistentDirectory() throws Exception {
        // deleting a non-existent file should not cause an error

        File doesNotExist = TempDirUtils.newFolder(temporaryFolder, "abc");
        FileUtils.deleteDirectory(doesNotExist);
    }