DirectoryWatcher.readChanges

Fills the destination array with all changes that occurred since the last call.

The function will block until either directory changes have occurred or until the timeout has elapsed. Specifying a negative duration will cause the function to wait without a timeout.

struct DirectoryWatcher
@safe
bool
readChanges
(,
Duration timeout = Duration.max
)

Parameters

dst DirectoryChange[]

The destination array to which the changes will be appended

timeout Duration

Optional timeout for the read operation. A value of Duration.max will wait indefinitely.

Return Value

Type: bool

If the call completed successfully, true is returned.

Meta