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.