# `GSPathObservation`

*Class*

An abstraction of `GSPathWatcher` in the spirit of `GSKeyValueObservation`.

## Declaration

```swift
class GSPathObservation
```

```objc
@interface GSPathObservation : NSObject
```

```python
class GSPathObservation(NSObject)
```

## Overview

See the `GSKeyValueObservation` documentation for a general explanation of the observation object pattern.

## Topics

### Instance Properties

- [`GSPathObservation.debounceDelay`](/Core/GlyphsKit/GSPathObservation/debounceDelay) — When greater than zero, target/action is triggered only once the time interval has passed without any new events.
- [`GSPathObservation.filePath`](/Core/GlyphsKit/GSPathObservation/filePath) — Full path to the observed file or directory.

### Instance Methods

- [`GSPathObservation pauseObservation`](/Core/GlyphsKit/GSPathObservation/pauseObservation) — Pauses the observation.
- [`GSPathObservation performBlockWithPausedObservation:`](/Core/GlyphsKit/GSPathObservation/performBlockWithPausedObservation:) — Pauses the observation, performs the block, and resumes the observation before returning.
- [`GSPathObservation resumeObservation`](/Core/GlyphsKit/GSPathObservation/resumeObservation) — Resumes a paused the observation, balancing a call to `-pauseObservation`.

### Type Methods

- [`GSPathObservation observeFileAtPath:isDirectory:target:action:`](/Core/GlyphsKit/GSPathObservation/observeFileAtPath:isDirectory:target:action:)

## Relationships

### Inherits From

- `NSObject`

### Conforms To

- [`GSPathWatcherObserver`](/Core/GlyphsKit/GSPathWatcherObserver)

