# `GSPath direction`

*Instance Method*

The direction in which the nodes traverse the path.

## Declaration

```swift
func direction() -> GSPath.Direction
```

```objc
- (GSPathDirection) direction;
```

[See also `direction` in the Python API](https://docu.glyphsapp.com/#GSPath.direction)

```python
pyobjc_instanceMethods.direction() -> GSPathDirection
```

## See Also

### Path Direction

- [`GSPath.GSPathDirection`](/Core/GlyphsCore/GSPath/GSPathDirection) — The traversal direction of a path.
- [`GSPath reverse`](/Core/GlyphsCore/GSPath/reverse) — Reverses the path direction.
- [`GSPath reverseFast`](/Core/GlyphsCore/GSPath/reverseFast) — Reverses the path direction without registering undo or notifying the layer.

