<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FinderSync",
  "identifier" : "/documentation/FinderSync/FIFinderSyncProtocol/endObservingDirectory(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Finder Sync"
    ],
    "preciseIdentifier" : "c:objc(pl)FIFinderSync(im)endObservingDirectoryAtURL:"
  },
  "title" : "endObservingDirectory(at:)"
}
-->

# endObservingDirectory(at:)

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

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

## Parameters

`url`

The URL of the directory.

## 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:)`](/documentation/FinderSync/FIFinderSyncProtocol/beginObservingDirectory(at:)), the Open and Save
dialogs are tracked separately from the Finder.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)