---
title: "endObservingDirectory(at:)"
framework: Finder Sync
role: symbol
role_heading: Instance Method
platforms: [macOS 10.10+]
path: "findersync/fifindersyncprotocol/endobservingdirectory(at:)"
---

# endObservingDirectory(at:)

Tells the extension that the user has stopped looking at a monitored directory or at one of its subdirectories.

## Declaration

```swift
optional func endObservingDirectory(at url: URL)
```

## Parameters

- `url`: The URL of the directory.

## Discussion

Discussion Override this method to receive notifications when the user is no longer looking at the contents of the given URL. As with beginObservingDirectory(at:), the Open and Save dialogs are tracked separately from the Finder.

## See Also

### Managing Badges, Shortcut Menus, and Toolbar Buttons

- [beginObservingDirectory(at:)](findersync/fifindersyncprotocol/beginobservingdirectory(at:).md)
- [menu(for:)](findersync/fifindersyncprotocol/menu(for:).md)
- [requestBadgeIdentifier(for:)](findersync/fifindersyncprotocol/requestbadgeidentifier(for:).md)
- [toolbarItemImage](findersync/fifindersyncprotocol/toolbaritemimage.md)
- [toolbarItemName](findersync/fifindersyncprotocol/toolbaritemname.md)
- [toolbarItemToolTip](findersync/fifindersyncprotocol/toolbaritemtooltip.md)
