You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-integration-ftp/src/main/java/org/springframework/integration/ftp/config/FtpOutboundChannelAdapterParser.java
Copy file name to clipboardExpand all lines: spring-integration-ftp/src/main/java/org/springframework/integration/ftp/config/FtpOutboundGatewayParser.java
+1
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,7 @@ protected void postProcessBuilder(BeanDefinitionBuilder builder, Element element
Copy file name to clipboardExpand all lines: spring-integration-ftp/src/main/resources/org/springframework/integration/ftp/config/spring-integration-ftp-5.2.xsd
Copy file name to clipboardExpand all lines: spring-integration-ftp/src/test/java/org/springframework/integration/ftp/outbound/FtpServerOutboundTests-context.xml
Copy file name to clipboardExpand all lines: spring-integration-ftp/src/test/java/org/springframework/integration/ftp/outbound/FtpServerOutboundTests.java
Copy file name to clipboardExpand all lines: spring-integration-sftp/src/main/java/org/springframework/integration/sftp/gateway/SftpOutboundGateway.java
+2-1
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,8 @@ protected void doChmod(RemoteFileOperations<LsEntry> remoteFileOperations, final
158
158
client.chmod(chmod, path);
159
159
}
160
160
catch (SftpExceptione) {
161
-
thrownewGeneralSftpException("Failed to execute chmod", e);
Copy file name to clipboardExpand all lines: spring-integration-sftp/src/main/java/org/springframework/integration/sftp/outbound/SftpMessageHandler.java
+2-1
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,8 @@ protected void doChmod(RemoteFileTemplate<LsEntry> remoteFileTemplate, final Str
78
78
client.chmod(chmod, path);
79
79
}
80
80
catch (SftpExceptione) {
81
-
thrownewGeneralSftpException("Failed to execute chmod", e);
Copy file name to clipboardExpand all lines: src/reference/asciidoc/sftp.adoc
+5-5
Original file line number
Diff line number
Diff line change
@@ -855,6 +855,10 @@ The modes are defined by the `FileExistsMode` enumeration, which has the followi
855
855
With `IGNORE` and `FAIL`, the file is not transferred.
856
856
`FAIL` causes an exception to be thrown, while `IGNORE` silently ignores the transfer (although a `DEBUG` log entry is produced).
857
857
858
+
Version 4.3 introduced the `chmod` attribute, which you can use to change the remote file permissions after upload.
859
+
You can use the conventional Unix octal format (for example, `600` allows read-write for the file owner only).
860
+
When configuring the adapter using java, you can use `setChmodOctal("600")` or `setChmod(0600)`.
861
+
858
862
==== Avoiding Partially Written Files
859
863
860
864
One of the common problems when dealing with file transfers is the possibility of processing a partial file.
@@ -869,10 +873,6 @@ However, there may be situations where you do not want to use this technique (fo
869
873
For situations like this, you can disable this feature by setting `use-temporary-file-name` to `false` (the default is `true`).
870
874
When this attribute is `false`, the file is written with its final name, and the consuming application needs some other mechanism to detect that the file is completely uploaded before accessing it.
871
875
872
-
Version 4.3 introduced the `chmod` attribute, which you can use to change the remote file permissions after upload.
873
-
You can use the conventional Unix octal format (for example, `600` allows read-write for the file owner only).
874
-
When configuring the adapter using java, you can use `setChmodOctal("600")` or `setChmodDecimal(384)`.
875
-
876
876
==== Configuring with Java Configuration
877
877
878
878
The following Spring Boot application shows an example of how to configure the outbound adapter with Java:
@@ -1174,7 +1174,7 @@ See also <<sftp-partial>>.
1174
1174
1175
1175
Version 4.3 introduced the `chmod` attribute, which lets you change the remote file permissions after upload.
1176
1176
You can use the conventional Unix octal format (for example, `600` allows read-write for the file owner only).
1177
-
When configuring the adapter with Java, you can use `setChmodOctal("600")` or `setChmodDecimal(384)`.
1177
+
When configuring the adapter with Java, you can use `setChmodOctal("600")` or `setChmod(0600)`.
0 commit comments