Difference between revisions of "API:DirectoryStream::rewind"
(Add DirectoryStream::rewind() to wiki)
Latest revision as of 14:15, 23 August 2017
The DirectoryStream::rewind() Core API method resets a directory stream to the beginning to be read again.
DirectoryStream::rewind() refreshes a directory stream and resets its DirectoryStream::position to 0. This allows you to read new or deleted items in a directory without having to construct a new DirectoryStream object. Note that this is not the same as manually setting DirectoryStream::position to 0 as that isn't guaranteed to reflect changes.
This method has no parameters.
This method doesn't return a meaningful value.