---
title: path()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsbrowser/path()
---

# path()

Returns a string representing the browser’s current path.

## Declaration

```swift
func path() -> String
```

## Return Value

Return Value The path representing the current selection. The components of this path are separated with the string returned by pathSeparator.

## Discussion

Discussion Invoking this method is equivalent to invoking path(toColumn:) for all columns.

## See Also

### Managing the Path

- [setPath(_:)](appkit/nsbrowser/setpath(_:).md)
- [path(toColumn:)](appkit/nsbrowser/path(tocolumn:).md)
- [pathSeparator](appkit/nsbrowser/pathseparator.md)
