ProxyInfo proxyInfo = getProxyInfo(repository, wagonManager);
if (proxyInfo != null) {
wagon.connect(repository, wagonManager.getAuthenticationInfo(id), proxyInfo);
} else {
wagon.connect(repository, wagonManager.getAuthenticationInfo(id));
}
wagon.putDirectory(inputDirectory, remoteDirectory);
if (chmod && wagon instanceof CommandExecutor) {