private static void createTargetFolder(Path targetFolder) throws IOException {
        File target = targetFolder.toFile();
        if (!target.exists()) {
            boolean created = target.mkdirs();
            LOG.debug(format("Создана целевая папка (результат %b): %s", created, target));
        } else {
            throw new IOException(String.format("Can't create target folder: %s", target.getAbsolutePath()));
        }
    }