FSEvents.SetExclusionPaths
--------------------------

Sets directories to be filtered from the EventStream.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FSEvents](component_FSEvents.md) | [6.0](newinversion60.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |

MBS( "FSEvents.SetExclusionPaths"; FSEventsRef; Paths ) 

**MBS**( **"FSEvents.SetExclusionPaths";** /\* Sets directories to be filtered from the EventStream. \*/  
**$FSEventsRef**; /\* The reference number for this FSEvents object.e.g. $fstream \*/   
**$Paths**) /\* The list of directories to filter. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| FSEventsRef | The reference number for this FSEvents object. | $fstream |
| Paths | The list of directories to filter. |  |

### Result

Returns 1, 0 or error.

### Description

Sets directories to be filtered from the EventStream.  
A maximum of 8 directories maybe specified.  
  
Requires OS X 10.9 or newer.  
Returns 1 on success or 0 on failure.  
### Examples

Pass two paths to ignore:

 Set Variable \[$r ; Value:MBS ( "FSEvents.SetExclusionPaths"; $FSEvents ; "/Backups¶/Data/Temp" )\]  
### See also

- [FSEvents.GetExclusionPaths](FSEventsGetExclusionPaths.md)

This function checks for a license.

Created 29th November 2015 , last changed 13th March 2016

  
[FSEvents.SetEvaluate](FSEventsSetEvaluate.md) - [FSEvents.SetFileName](FSEventsSetFileName.md)

[HTML Version](FSEventsSetExclusionPaths.shtml)