<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=File</id>
	<title>File - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=File"/>
	<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=File&amp;action=history"/>
	<updated>2026-04-21T23:08:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.4</generator>
	<entry>
		<id>https://wiki.crumbledworld.com/index.php?title=File&amp;diff=110&amp;oldid=prev</id>
		<title>Anders: Created page with &quot;{{:FileExampleCode}}  ==Constructor== {| class=&quot;wikitable&quot;  !|function !|description |- |File(string filePath) |Load a file. |- |File(string fileNodePath, string filePath) |Load a file located in a map. load the file from the map with the name filePath. |- |}  ==Functions== {| class=&quot;wikitable&quot; !|return !|function !|description |- |string |getName() |Returns the file name. |- |string |getPath() |Returns the file path. |-...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=File&amp;diff=110&amp;oldid=prev"/>
		<updated>2025-07-05T14:22:15Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{:FileExampleCode}}  ==Constructor== {| class=&amp;quot;wikitable&amp;quot;  !|function !|description |- |File(&lt;a href=&quot;/index.php/String&quot; title=&quot;String&quot;&gt;string&lt;/a&gt; filePath) |Load a file. |- |File(&lt;a href=&quot;/index.php/String&quot; title=&quot;String&quot;&gt;string&lt;/a&gt; fileNodePath, &lt;a href=&quot;/index.php/String&quot; title=&quot;String&quot;&gt;string&lt;/a&gt; filePath) |Load a file located in a map. load the file from the map with the name filePath. |- |}  ==Functions== {| class=&amp;quot;wikitable&amp;quot; !|return !|function !|description |- |string |&lt;a href=&quot;/index.php?title=File:GetName()&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;File:GetName() (page does not exist)&quot;&gt;getName&lt;/a&gt;() |Returns the file name. |- |string |&lt;a href=&quot;/index.php?title=File:GetPath()&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;File:GetPath() (page does not exist)&quot;&gt;getPath&lt;/a&gt;() |Returns the file path. |-...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{:FileExampleCode}}&lt;br /&gt;
&lt;br /&gt;
==Constructor==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|File([[string]] filePath)&lt;br /&gt;
|Load a file.&lt;br /&gt;
|-&lt;br /&gt;
|File([[string]] fileNodePath, [[string]] filePath)&lt;br /&gt;
|Load a file located in a map. load the file from the map with the name filePath.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!|return&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[File:getName()|getName]]()&lt;br /&gt;
|Returns the file name.&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[File:getPath()|getPath]]()&lt;br /&gt;
|Returns the file path.&lt;br /&gt;
|-&lt;br /&gt;
|int&lt;br /&gt;
|[[File:getSize()|getSize]]()&lt;br /&gt;
|Returns the file size.&lt;br /&gt;
|-&lt;br /&gt;
|int&lt;br /&gt;
|[[File:getLastWriteTime()|getLastWriteTime]]()&lt;br /&gt;
|Returns the time when the file was last updated.&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[File:isDirectory()|isDirectory]]()&lt;br /&gt;
|Returns true if it is a directory,&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[File:exist()|exist]]()&lt;br /&gt;
|Returns if the file exist.&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[File:isFile()|isFile]]()&lt;br /&gt;
|Returns true if it is a file.&lt;br /&gt;
|-&lt;br /&gt;
|[[string]]&lt;br /&gt;
|[[File:getContent()|getContent]]()&lt;br /&gt;
|Returns the file content.&lt;br /&gt;
|-&lt;br /&gt;
|{File()}&lt;br /&gt;
|[[File:getFiles()|getFiles]]()&lt;br /&gt;
|Returns all files in the directory.&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[File:getHash()|getHash]]()&lt;br /&gt;
|Returns a hash of the file.&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[File:saveToFile(string filePath)|saveToFile]](string filePath)&lt;br /&gt;
|Save to file, The file will be saved in &amp;quot;Data/Dynamic&amp;quot; by default no fiole generated by lua can be saved in any other location.&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[File:remove()|remove]]()&lt;br /&gt;
|Remove the file.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Anders</name></author>
	</entry>
</feed>