<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.computercraft.info/wiki/index.php?action=history&amp;feed=atom&amp;title=Fs.complete</id>
		<title>Fs.complete - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://www.computercraft.info/wiki/index.php?action=history&amp;feed=atom&amp;title=Fs.complete"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Fs.complete&amp;action=history"/>
		<updated>2026-07-11T11:51:11Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Fs.complete&amp;diff=7088&amp;oldid=prev</id>
		<title>Bomb Bloke: Created page with &quot;{{lowercase}} {{Function |name=fs.complete |args= {{Type|string}} file / directory, {{Type|string}} parent folder [, {{Type|boolean}} include files] [, {{Type|boolean}} includ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Fs.complete&amp;diff=7088&amp;oldid=prev"/>
				<updated>2015-07-05T07:16:49Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{lowercase}} {{Function |name=fs.complete |args= {{Type|string}} file / directory, {{Type|string}} parent folder [, {{Type|boolean}} include files] [, {{Type|boolean}} includ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=fs.complete&lt;br /&gt;
|args= {{Type|string}} file / directory, {{Type|string}} parent folder [, {{Type|boolean}} include files] [, {{Type|boolean}} include slashes]&lt;br /&gt;
|returns={{Type|table}} completion list&lt;br /&gt;
|api=fs&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Added by ComputerCraft 1.74, fs.complete() can be passed a partial file or directory name, and returns a numerically indexed table containing strings that could be used to complete it.&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;include files&amp;quot; is set to false, only directory names will be considered. If &amp;quot;include slashes&amp;quot; is set to true, each possible directory name will be represented in the list ''twice'' - once with a trailing forward slash (/), and once without (consecutively, and in that order). Both of these optional parameters default to true if omitted.&lt;br /&gt;
&lt;br /&gt;
Note that fs.complete() is case-sensitive, even if the file system it's being used with isn't. [[fs.find]]() is a similar function, although it provides matched file / folder names in full.&lt;br /&gt;
&lt;br /&gt;
See also: [[textutils.complete]](), [[shell.complete]](), [[shell.setCompletionFunction]](), [[shell.completeProgram]]() and [[help.completeTopic]]().&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Prints a list of strings that could be combined with &amp;quot;p&amp;quot; to produce file names in the rom/apis directory.&lt;br /&gt;
|code=&lt;br /&gt;
 [[textutils.tabulate]]( fs.complete( &amp;quot;p&amp;quot;, &amp;quot;rom/apis&amp;quot; ) )&lt;br /&gt;
|output=aintutils arallel eripheral (which could be concatenated to get the names of the [[paintutils]], [[parallel]] and [[peripheral]] APIs).&lt;br /&gt;
}}&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Generates a table containing all file / folder names located in the rom directory.&lt;br /&gt;
|code=&lt;br /&gt;
 for _, match in pairs( fs.complete( &amp;quot;&amp;quot;, &amp;quot;rom&amp;quot; ) ) do print( match ) end&lt;br /&gt;
|output=.&lt;br /&gt;
..&amp;lt;br&amp;gt;&lt;br /&gt;
apis/&amp;lt;br&amp;gt;&lt;br /&gt;
apis&amp;lt;br&amp;gt;&lt;br /&gt;
autorun/&amp;lt;br&amp;gt;&lt;br /&gt;
autorun&amp;lt;br&amp;gt;&lt;br /&gt;
help/&amp;lt;br&amp;gt;&lt;br /&gt;
help&amp;lt;br&amp;gt;&lt;br /&gt;
programs/&amp;lt;br&amp;gt;&lt;br /&gt;
programs&lt;br /&gt;
startup&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:API_Functions]]&lt;/div&gt;</summary>
		<author><name>Bomb Bloke</name></author>	</entry>

	</feed>