/guava/guava/src/com/google/common/io/MoreFiles.java
if ( exceptionFile == null) {   return null; }
[Delete]
Collection<IOException> exceptions = null; try { if (isDirectory(dir, path, NOFOLLOW_LINKS)) { try (SecureDirectoryStream<Path> childDir = dir.newDirectoryStream(path, NOFOLLOW_LINKS)) { exceptions = deleteDirectoryContentsSecure(childDir); } <extra_id_0> dir.deleteDirectory(path); } } else { dir.deleteFile(path); } return exceptions;