vibe.d beta banner
get vibe.d
0.7.30

Function 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.

Prototype

abstract bool readChanges(
  ref DirectoryChange[] dst,
  core.time.Duration timeout = dur(-1L)
);

Parameters

NameDescription
dst The destination array to which the changes will be appended
timeout Optional timeout for the read operation

Returns

If the call completed successfully, true is returned.

Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

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