Fix sample in sftp/streaming.adoc

* Add missing `/` between the path and filename.
This commit is contained in:
Mattias
2023-11-08 15:54:09 +01:00
committed by GitHub
parent 96adc08ad8
commit bcfd81abba

View File

@@ -94,7 +94,7 @@ public class SftpJavaApplication {
public ExpressionEvaluatingRequestHandlerAdvice after() {
ExpressionEvaluatingRequestHandlerAdvice advice = new ExpressionEvaluatingRequestHandlerAdvice();
advice.setOnSuccessExpression(
"@template.remove(headers['file_remoteDirectory'] + headers['file_remoteFile'])");
"@template.remove(headers['file_remoteDirectory'] + '/' + headers['file_remoteFile'])");
advice.setPropagateEvaluationFailures(true);
return advice;
}