<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=API%3ADirectoryStream%3A%3Arewind</id>
		<title>API:DirectoryStream::rewind - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=API%3ADirectoryStream%3A%3Arewind"/>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=API:DirectoryStream::rewind&amp;action=history"/>
		<updated>2026-05-10T13:40:22Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>http://wiki.spheredev.org/index.php?title=API:DirectoryStream::rewind&amp;diff=10142&amp;oldid=prev</id>
		<title>Bruce Pascoe: Add DirectoryStream::rewind() to wiki</title>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=API:DirectoryStream::rewind&amp;diff=10142&amp;oldid=prev"/>
				<updated>2017-08-23T14:15:50Z</updated>
		
		<summary type="html">&lt;p&gt;Add DirectoryStream::rewind() to wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:DirectoryStream::rewind()}}&lt;br /&gt;
&lt;br /&gt;
The '''&amp;lt;tt&amp;gt;DirectoryStream::rewind()&amp;lt;/tt&amp;gt;''' [[API:Functions#Core_API|Core API]] method resets a directory stream to the beginning to be read again.&lt;br /&gt;
&lt;br /&gt;
===== Usage =====&lt;br /&gt;
&lt;br /&gt;
 ''dirstream_obj''.'''rewind'''();&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== API Information ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;'''DirectoryStream::rewind()'''&amp;lt;/tt&amp;gt; refreshes a directory stream and resets its &amp;lt;tt&amp;gt;[[API:DirectoryStream::position|DirectoryStream::position]]&amp;lt;/tt&amp;gt; to 0.  This allows you to read new or deleted items in a directory without having to construct a new &amp;lt;tt&amp;gt;DirectoryStream&amp;lt;/tt&amp;gt; object.  Note that this is '''not''' the same as manually setting &amp;lt;tt&amp;gt;[[API:DirectoryStream::position|DirectoryStream::position]]&amp;lt;/tt&amp;gt; to 0 as that isn't guaranteed to reflect changes.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
This method has no parameters.&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
This method doesn't return a meaningful value.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
* [[API:DirectoryStream::position|DirectoryStream::position]]&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Sphere 2 API]]&lt;/div&gt;</summary>
		<author><name>Bruce Pascoe</name></author>	</entry>

	</feed>