vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Struct DirectoryWatcher

Interface for directory watcher implementations.

struct DirectoryWatcher ;

Directory watchers monitor the contents of a directory (wither recursively or non-recursively) for changes, such as file additions, deletions or modifications.

Properties

NameTypeDescription
path[get] GenericPath!(vibe.core.path.PosixPathFormat)The path of the watched directory
recursive[get] boolIndicates if the directory is watched recursively

Methods

NameDescription
readChanges (dst, timeout) Fills the destination array with all changes that occurred since the last call.
Authors

Sönke Ludwig

Copyright

© 2012-2021 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.