# FileModeChanged(string[], FileMode)

> Unity calls this method when file mode has been changed for one or more files.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)

## FileModeChanged()

```csharp
public void FileModeChanged(string[] arg0, FileMode fileMode)
```

### Parameters

**** (string\[]): **** (FileMode):&#x20;

### Remarks

Array of strings specifies changed files. [FileMode](/engine/6000.5/script-reference/unityeditor/versioncontrol/filemode.md) specifies new file mode. This method must be static if implemented.

### Examples

```csharp

using UnityEngine;
using UnityEditor.VersionControl;

class CustomAssetModificationProcessor : UnityEditor.AssetModificationProcessor
{
    static void FileModeChanged(string[] paths, FileMode mode)
    {
        Debug.Log($"{nameof(FileModeChanged)} ({mode}):");
        foreach (var path in paths)
            Debug.Log(path);
    }
}
```
