fileMove

Version 23.4.8841


fileMove


指定されたパスにファイルやディレクトリを移動します。

必要なパラメータ

  • source:移動するファイル(filename 含む)またはディレクトリのパス。
  • destination:移動先となるファイル(filename 含む)またはディレクトリのパス。

オプションのパラメータ

  • force:オペレーションがコピー先のパスに見つからないディレクトリを作成するかどうかを制御。true およびfalse が使用可能です。デフォルト値はtrue です。

アウトプット属性

  • file:source:ソースファイルまたはディレクトリへのフルパス。
  • file:destination:コピー先ファイルまたはディレクトリへのフルパス。

<!-- Creating the input item with the associated source and destination attributes -->
<arc:set attr="input.source" value="/tmp/source/moveme.xml" />
<arc:set attr="input.destination" value="/tmp/destination/moveme.xml" />

<!-- Calling fileMove and passing in the input item -->
<arc:call op="fileMove" item="input">
  <!-- Optional: Logging information about the moved file to the application log -->
  <arc:set attr="_log.info" value="The file [input.file:source], was moved to [input.file:destination]"/>  
</arc:call>