> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arc.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# fileMove

> ファイルまたはディレクトリを指定された宛先パスに移動します。見つからないディレクトリを自動的に作成するオプションがあります。

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

## 必要なパラメータ

* **source**：移動するファイル（filename 含む）またはディレクトリのパス。
* **destination**：移動先となるファイル（filename 含む）またはディレクトリのパス。

## オプションのパラメータ

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

## アウトプット属性

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

## 例

```xml theme={null}
<!-- 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> 
```
