# component::SyncDirectoryWatcher

## Summary

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/component/sync-directory-watcher#classcomponent_1_1_sync_directory_watcher_1aa85f649e53410f0d77c957942c1e3e37(https://fuchsia.dev/reference/cpp/other/singletonfidl/unowned-client-end#singletonfidl_1_1_unowned_client_end< fuchsia_io::Directory > dir)` ||
| `https://fuchsia.dev/reference/cpp/class/component/sync-directory-watcher#classcomponent_1_1_sync_directory_watcher_1a481c498fbebcbeaf6d107ae5e8f0d941(https://fuchsia.dev/reference/cpp/other/singletonfidl/unowned-client-end#singletonfidl_1_1_unowned_client_end< fuchsia_io::Directory > dir, const std::string & relative_path)` ||
| `https://fuchsia.dev/reference/cpp/class/component/sync-directory-watcher#classcomponent_1_1_sync_directory_watcher_1aa465312e5a00f5edf6a3cff1b3b91b95(const std::string & full_path)` ||

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/component/sync-directory-watcher#classcomponent_1_1_sync_directory_watcher_1a151d301fb0865991c87f452470b4fecc(bool stop_at_idle, https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time deadline)` | `https://fuchsia.dev/reference/cpp/other/singletonzx/result#singletonzx_1_1result< std::string >` |

## Public functions

### GetNextEntry

```c++
zx::result< std::string > GetNextEntry(
  bool stop_at_idle,
  zx::time deadline
)
```

### SyncDirectoryWatcher

```c++
 SyncDirectoryWatcher(
  fidl::UnownedClientEnd< fuchsia_io::Directory > dir
)
```

### SyncDirectoryWatcher

```c++
 SyncDirectoryWatcher(
  fidl::UnownedClientEnd< fuchsia_io::Directory > dir,
  const std::string & relative_path
)
```

### SyncDirectoryWatcher

```c++
 SyncDirectoryWatcher(
  const std::string & full_path
)
```