<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Roujo</id>
		<title>ComputerCraft Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Roujo"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/Special:Contributions/Roujo"/>
		<updated>2026-07-11T14:51:21Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Fs_(API)&amp;diff=1746</id>
		<title>Fs (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Fs_(API)&amp;diff=1746"/>
				<updated>2012-06-09T18:16:33Z</updated>
		
		<summary type="html">&lt;p&gt;Roujo: Ah, sorry, I see what you guys meant now. Seems odd that fs.makeDir() doesn't have the same behavior as the mkdir console command, though. Again, sorry. =)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The FS API allows you to mess around with the filesystem.&lt;br /&gt;
&lt;br /&gt;
==Methods==&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;200px&amp;quot;|Method name&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.list]](path)&lt;br /&gt;
|Lists the directories and files in the given directory&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.exists]](path)&lt;br /&gt;
|Checks if a path refers to an existing file or directory&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.isDir]](path)&lt;br /&gt;
|Checks if a path refers to an existing directory&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.isReadOnly]](path)&lt;br /&gt;
|Checks if a path is read-only (i.e. cannot be modified)&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.getName]](path)&lt;br /&gt;
|Gets the final component of a pathname&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.getDrive]](path)&lt;br /&gt;
|Gets the type of storage medium holding a file or directory&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.makeDir]](path)&lt;br /&gt;
|Makes a directory&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.move]](fromPath, toPath)&lt;br /&gt;
|Moves a file or directory to a new location&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.copy]](fromPath, toPath)&lt;br /&gt;
|Copies a file or directory to a new location&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.delete]](path)&lt;br /&gt;
|Deletes a file or directory&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.combine]](basePath, localPath)&lt;br /&gt;
|Combines two path components, returning a path consisting of the local path nested inside the base path&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.open]](path, mode)&lt;br /&gt;
|Opens a file so it can be read or written&lt;br /&gt;
|}&lt;br /&gt;
[[Category:APIs]]&lt;br /&gt;
&lt;br /&gt;
==Path Names==&lt;br /&gt;
All of these functions except for [[fs.combine]] refer solely to &amp;lt;em&amp;gt;absolute paths&amp;lt;/em&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
This means that the current working directory, as set by the &amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt; command or the [[shell.setDir]] function, is ignored. Each path name consists of a list of nonempty path components separated by forward slashes, and those path components are taken one by one with the first being contained in the root directory of the computer.&lt;br /&gt;
&lt;br /&gt;
If you need to deal with paths provided by the user that may be absolute or may be relative to the current working directory, use [[shell.resolve]].&lt;br /&gt;
&lt;br /&gt;
Unlike most real-world operating systems, ComputerCraft's absolute path name system does not need to be started with a forward slash ( / ). Making the directory &amp;quot;a/b/c&amp;quot; is the same as making &amp;quot;/a/b/c&amp;quot;. Leaving the slashes is just a matter of preference to the coder.&lt;/div&gt;</summary>
		<author><name>Roujo</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Fs_(API)&amp;diff=1745</id>
		<title>Fs (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Fs_(API)&amp;diff=1745"/>
				<updated>2012-06-09T18:11:52Z</updated>
		
		<summary type="html">&lt;p&gt;Roujo: Removed note about the a/b/c being the same as /a/b/c, since AFAIK that's not true unless your already at the root.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The FS API allows you to mess around with the filesystem.&lt;br /&gt;
&lt;br /&gt;
==Methods==&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;200px&amp;quot;|Method name&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.list]](path)&lt;br /&gt;
|Lists the directories and files in the given directory&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.exists]](path)&lt;br /&gt;
|Checks if a path refers to an existing file or directory&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.isDir]](path)&lt;br /&gt;
|Checks if a path refers to an existing directory&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.isReadOnly]](path)&lt;br /&gt;
|Checks if a path is read-only (i.e. cannot be modified)&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.getName]](path)&lt;br /&gt;
|Gets the final component of a pathname&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.getDrive]](path)&lt;br /&gt;
|Gets the type of storage medium holding a file or directory&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.makeDir]](path)&lt;br /&gt;
|Makes a directory&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.move]](fromPath, toPath)&lt;br /&gt;
|Moves a file or directory to a new location&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.copy]](fromPath, toPath)&lt;br /&gt;
|Copies a file or directory to a new location&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.delete]](path)&lt;br /&gt;
|Deletes a file or directory&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.combine]](basePath, localPath)&lt;br /&gt;
|Combines two path components, returning a path consisting of the local path nested inside the base path&lt;br /&gt;
|-&lt;br /&gt;
|[[fs.open]](path, mode)&lt;br /&gt;
|Opens a file so it can be read or written&lt;br /&gt;
|}&lt;br /&gt;
[[Category:APIs]]&lt;br /&gt;
&lt;br /&gt;
==Path Names==&lt;br /&gt;
All of these functions except for [[fs.combine]] refer solely to &amp;lt;em&amp;gt;absolute paths&amp;lt;/em&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
This means that the current working directory, as set by the &amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt; command or the [[shell.setDir]] function, is ignored. Each path name consists of a list of nonempty path components separated by forward slashes, and those path components are taken one by one with the first being contained in the root directory of the computer.&lt;br /&gt;
&lt;br /&gt;
If you need to deal with paths provided by the user that may be absolute or may be relative to the current working directory, use [[shell.resolve]].&lt;/div&gt;</summary>
		<author><name>Roujo</name></author>	</entry>

	</feed>