davsclaus commented on code in PR #30679:
URL: https://github.com/apache/camel/pull/30679#discussion_r4670699517
##########
components/camel-ftp-common/src/main/java/org/apache/camel/component/file/remote/RemoteFileProducer.java:
##########
@@ -53,6 +53,19 @@ public String normalizePath(String name) {
return name;
}
+ /**
+ * The operations replace a backslash in the name of the file they store
by / when the separator option is UNIX (the
+ * default). They use the name as given to check, delete or rename a file,
and to write a checksum file, so not when
+ * the producer writes a temp file, a done file or a checksum file.
+ */
+ @Override
+ protected boolean isBackslashNormalized() {
Review Comment:
Nit: "The operations replace a backslash ... when the separator option is
UNIX" does not hold for `ScpProducer` (camel-jsch), which inherits this method:
`ScpOperations` never calls `normalizePath`, so it returns `true` there
although the name is sent as given. It is harmless, because main splits on `\`
in the same way (the old `FileUtil.compactPath`), and the scp sink refuses a
file name with `/`. A narrower Javadoc, or an override in `ScpProducer` that
returns `false`, would keep the claim accurate.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]