ファイルまたはディレクトリを移動します
この関数で使用するパスは、Unityプロジェクトからの相対パスになりますが、絶対パスで指定することも可能です。 全てのファイルセパレータは"/"で区切ります。 "to"の最後には必ずファイル名またはディレクトリ名を含めるようにしてください。
// creates a menu entry to move a file or a directory.
@MenuItem ("Example/Move Something")
static function MoveAFile () {
// moves the file "YourFileOrFolder" from "path/" to "move/path/"
FileUtil.MoveFileOrDirectory("path/YourFileOrFolder", "move/path/YourFileOrFolder");
}