<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ocr.michiyo.me/w/index.php?action=history&amp;feed=atom&amp;title=Component%2Ffilesystem</id>
	<title>Component/filesystem - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ocr.michiyo.me/w/index.php?action=history&amp;feed=atom&amp;title=Component%2Ffilesystem"/>
	<link rel="alternate" type="text/html" href="https://ocr.michiyo.me/w/index.php?title=Component/filesystem&amp;action=history"/>
	<updated>2026-08-24T13:46:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://ocr.michiyo.me/w/index.php?title=Component/filesystem&amp;diff=1162&amp;oldid=prev</id>
		<title>imported&gt;OCDoc Import: Imported from legacy OpenComputers documentation at ocdoc.cil.li</title>
		<link rel="alternate" type="text/html" href="https://ocr.michiyo.me/w/index.php?title=Component/filesystem&amp;diff=1162&amp;oldid=prev"/>
		<updated>2026-08-24T08:08:27Z</updated>

		<summary type="html">&lt;p&gt;Imported from legacy OpenComputers documentation at ocdoc.cil.li&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Component: Filesystem =&lt;br /&gt;
&lt;br /&gt;
This component is provided by [[Item/floppy disk|Floppy Disks]] or [[Item/hard disk drive|Hard Disk Drives]] in Managed mode (for Unmanaged mode, see [[Component/drive|Drive]])&lt;br /&gt;
&lt;br /&gt;
Component name: `filesystem`. Callbacks:&lt;br /&gt;
&lt;br /&gt;
* `spaceUsed():number`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;The currently used capacity of the file system, in bytes.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `open(path:string[, mode:string=&amp;#039;r&amp;#039;]):number`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Opens a new file descriptor and returns its handle.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `seek(handle:number, whence:string, offset:number):number`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Seeks in an open file descriptor with the specified handle. Returns the new pointer position.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `makeDirectory(path:string):boolean`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Creates a directory at the specified absolute path in the file system. Creates parent directories, if necessary.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `exists(path:string):boolean`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Returns whether an object exists at the specified absolute path in the file system.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `isReadOnly():boolean`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Returns whether the file system is read-only.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `write(handle:number, value:string):boolean`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Writes the specified data to an open file descriptor with the specified handle.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `spaceTotal():number`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;The overall capacity of the file system, in bytes.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `isDirectory(path:string):boolean`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Returns whether the object at the specified absolute path in the file system is a directory.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `rename(from:string, to:string):boolean`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Renames/moves an object from the first specified absolute path in the file system to the second.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `list(path:string):table`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Returns a list of names of objects in the directory at the specified absolute path in the file system.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `lastModified(path:string):number`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Returns the (real world) timestamp of when the object at the specified absolute path in the file system was modified.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `getLabel():string`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Get the current label of the file system.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `remove(path:string):boolean`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Removes the object at the specified absolute path in the file system.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `close(handle:number)`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Closes an open file descriptor with the specified handle.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `size(path:string):number`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Returns the size of the object at the specified absolute path in the file system.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `read(handle:number, count:number):string or nil`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Reads up to the specified amount of data from an open file descriptor with the specified handle. Returns nil when EOF is reached.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `setLabel(value:string):string`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Sets the label of the file system. Returns the new value, which may be truncated.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
{{:Component/contents}}&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;OCDoc Import</name></author>
	</entry>
</feed>