FileUtil Manual     Reference     Scripting  
Scripting > Editor Classes > FileUtil
FileUtil Class

Lets you do move, copy, delete operations over files or directories

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.

Class Functions

Deletes a file or a directory given a path.


Copies a file or a directory.


Copies the file or directory.


Moves a file or a directory from a given path to another path.


Returns a unique path in the Temp folder within your current project.