<?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%3Anext</id>
		<title>API:DirectoryStream::next - 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%3Anext"/>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=API:DirectoryStream::next&amp;action=history"/>
		<updated>2026-04-30T00:38:19Z</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::next&amp;diff=10133&amp;oldid=prev</id>
		<title>Bruce Pascoe: Note that return value is iterator-like</title>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=API:DirectoryStream::next&amp;diff=10133&amp;oldid=prev"/>
				<updated>2017-08-17T16:32:33Z</updated>
		
		<summary type="html">&lt;p&gt;Note that return value is iterator-like&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 16:32, 17 August 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l21&quot; &gt;Line 21:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Return Value ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Return Value ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;An object with two properties, &amp;lt;tt&amp;gt;.done&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.value&amp;lt;/tt&amp;gt;.&amp;#160; If there are no more entries to retrieve, &amp;lt;tt&amp;gt;.done&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;true&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.value&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;undefined&amp;lt;/tt&amp;gt;.&amp;#160; Otherwise, &amp;lt;tt&amp;gt;.done&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;false&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.value&amp;lt;/tt&amp;gt; is an object describing the directory entry:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;An object with two properties, &amp;lt;tt&amp;gt;.done&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.value&amp;lt;/tt&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, with semantics compatible with the ES2015 iterator protocol&lt;/ins&gt;.&amp;#160; If there are no more entries to retrieve, &amp;lt;tt&amp;gt;.done&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;true&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.value&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;undefined&amp;lt;/tt&amp;gt;.&amp;#160; Otherwise, &amp;lt;tt&amp;gt;.done&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;false&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.value&amp;lt;/tt&amp;gt; is an object describing the directory entry:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bruce Pascoe</name></author>	</entry>

	<entry>
		<id>http://wiki.spheredev.org/index.php?title=API:DirectoryStream::next&amp;diff=10132&amp;oldid=prev</id>
		<title>Bruce Pascoe: Add page for DirectoryStream::next()</title>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=API:DirectoryStream::next&amp;diff=10132&amp;oldid=prev"/>
				<updated>2017-08-15T18:31:45Z</updated>
		
		<summary type="html">&lt;p&gt;Add page for DirectoryStream::next()&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:DirectoryStream::next()}}&lt;br /&gt;
&lt;br /&gt;
The '''&amp;lt;tt&amp;gt;DirectoryStream::next()&amp;lt;/tt&amp;gt;''' method reads the next directory entry from a directory stream.&lt;br /&gt;
&lt;br /&gt;
===== Usage =====&lt;br /&gt;
&lt;br /&gt;
 ''dir_entry'' = ''dirstream_obj''.'''next'''();&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::next()'''&amp;lt;/tt&amp;gt; reads the next directory entry from the stream and advances the stream position.  The value of &amp;lt;tt&amp;gt;[[API:DirectoryStream::position|DirectoryStream::position]]&amp;lt;/tt&amp;gt; determines which entry is read.&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;
An object with two properties, &amp;lt;tt&amp;gt;.done&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.value&amp;lt;/tt&amp;gt;.  If there are no more entries to retrieve, &amp;lt;tt&amp;gt;.done&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;true&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.value&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;undefined&amp;lt;/tt&amp;gt;.  Otherwise, &amp;lt;tt&amp;gt;.done&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;false&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.value&amp;lt;/tt&amp;gt; is an object describing the directory entry:&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Property&lt;br /&gt;
!Type&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;.fileName&amp;lt;/tt&amp;gt;&lt;br /&gt;
|style=&amp;quot;text-align: center;&amp;quot;|''string''&lt;br /&gt;
|The name of the file or directory, e.g. &amp;lt;tt&amp;gt;pig.js&amp;lt;/tt&amp;gt;.  If the entry is a directory, &amp;lt;tt&amp;gt;.fileName&amp;lt;/tt&amp;gt; will end in a slash (&amp;lt;tt&amp;gt;/&amp;lt;/tt&amp;gt;).&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;.fullPath&amp;lt;/tt&amp;gt;&lt;br /&gt;
|style=&amp;quot;text-align: center;&amp;quot;|''string''&lt;br /&gt;
|The full SphereFS pathname of the file or directory, e.g. &amp;lt;tt&amp;gt;@/scripts/pig.js&amp;lt;/tt&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;.isDirectory&amp;lt;/tt&amp;gt;&lt;br /&gt;
|style=&amp;quot;text-align: center;&amp;quot;|''boolean''&lt;br /&gt;
|&amp;lt;tt&amp;gt;true&amp;lt;/tt&amp;gt; if the entry is a directory, otherwise &amp;lt;tt&amp;gt;false&amp;lt;/tt&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
* [[API:DirectoryStream|new DirectoryStream()]]&lt;br /&gt;
* [[API:DirectoryStream::position|DirectoryStream::position]]&lt;br /&gt;
* [[API:DirectoryStream::rewind|DirectoryStream::rewind()]]&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>