GH-3647: Use remoteDirExpression in MV command (#3651)
* GH-3647: Use remoteDirExpression in MV command Fixes https://github.com/spring-projects/spring-integration/issues/3647 To simplify a source and renameTo remote file expressions, the `remoteDirectoryExpression` is consulted now, when they are not full paths. This is useful when we want just to rename a remote file in some dir * * Add JavaDoc for `getDirectoryExpressionProcessor()` * Fix language in docs
This commit is contained in:
@@ -1247,7 +1247,7 @@ The `file_remoteDirectory` header provides the remote directory, and the `file_r
|
||||
|
||||
==== Using the `mv` Command
|
||||
|
||||
The `mv` command moves files
|
||||
The `mv` command moves files.
|
||||
|
||||
The `mv` command has no options.
|
||||
|
||||
@@ -1259,6 +1259,10 @@ The payload of the result message is `Boolean.TRUE`.
|
||||
The `file_remoteDirectory` header provides the original remote directory, and `file_remoteFile` header provides the file name.
|
||||
The new path is in the `file_renameTo` header.
|
||||
|
||||
Starting with version 5.5.6, the `remoteDirectoryExpression` can be used in the `mv` command for convenience.
|
||||
If the "`from`" file is not a full file path, the result of `remoteDirectoryExpression` is used as the remote directory.
|
||||
The same applies for the "`to`" file, for example, if the task is just to rename a remote file in some directory.
|
||||
|
||||
==== Additional Information about FTP Outbound Gateway Commands
|
||||
|
||||
The `get` and `mget` commands support the `local-filename-generator-expression` attribute.
|
||||
|
||||
@@ -1214,6 +1214,10 @@ The payload of the result message is `Boolean.TRUE`.
|
||||
The the `file_remoteDirectory` header holds the original remote directory, and the `file_remoteFile` header holds the filename.
|
||||
The `file_renameTo` header holds the new path.
|
||||
|
||||
Starting with version 5.5.6, the `remoteDirectoryExpression` can be used in the `mv` command for convenience.
|
||||
If the "`from`" file is not a full file path, the result of `remoteDirectoryExpression` is used as the remote directory.
|
||||
The same applies for the "`to`" file, for example, if the task is just to rename a remote file in some directory.
|
||||
|
||||
==== Additional Command Information
|
||||
|
||||
The `get` and `mget` commands support the `local-filename-generator-expression` attribute.
|
||||
|
||||
@@ -92,6 +92,8 @@ For this reason, the property is `false` by default; this may change in a future
|
||||
|
||||
The `FileInboundChannelAdapterSpec` has now a convenient `recursive(boolean)` option instead of requiring an explicit reference to the `RecursiveDirectoryScanner`.
|
||||
|
||||
The `remoteDirectoryExpression` can now be used in the `mv` command for convenience.
|
||||
|
||||
[[x5.5-mongodb]]
|
||||
==== MongoDb Changes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user