@Override protected void doChmod(RemoteFileOperations<LsEntry> remoteFileOperations, final String path, final int chmod) { remoteFileOperations .executeWithClient((ClientCallbackWithoutResult<ChannelSftp>) client -> { try { client.chmod(chmod, path); } catch (SftpException e) { throw new GeneralSftpException("Failed to execute chmod", e); } }); }
@Override protected void doChmod(RemoteFileOperations<LsEntry> remoteFileOperations, final String path, final int chmod) { remoteFileOperations .executeWithClient((ClientCallbackWithoutResult<ChannelSftp>) client -> { try { client.chmod(chmod, path); } catch (SftpException e) { throw new GeneralSftpException("Failed to execute chmod", e); } }); }