public static boolean unzipDirectoryTo(Path zip, Path dir) throws IOException {
        if (!control(zip) || !controlDirectory(dir)) {
            return false;
        }

        return DirectoryZip.unpackZipTo(zip, dir);
    }