# `GSPathWatcher addObserver:forFile:`

*Type Method*

## Declaration

```swift
class func add(_ observer: any GSPathWatcherObserver & NSObjectProtocol, forFile filePath: String)
```

```objc
+ (void) addObserver:(NSObject<GSPathWatcherObserver> *) observer forFile:(NSString *) filePath;
```

```python
addObserver_forFile_(observer: NSObject<GSPathWatcherObserver>, filePath: str)
```

