MTA:Eir/FileSystem/createRAMDisk

From Multi Theft Auto: Wiki
Revision as of 22:23, 16 January 2022 by Quiret (talk | contribs) (Created page with "__NOTOC__ This function creates a FileSystem translator which is located entirely inside of MTA application memory, also known as RAM. ==Syntax== <syntaxhighlight lang="lua"> translator fsnamespace.createRAMDisk( bool caseSensitive ) </syntaxhighlight> ==Arguments== *'''caseSensitive:''' if true then all namespaces are compared case sensitively in path operations, otherwise strict character equality comparison is performed ==Returns== This function returns a new '''Fi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function creates a FileSystem translator which is located entirely inside of MTA application memory, also known as RAM.

Syntax

translator fsnamespace.createRAMDisk( bool caseSensitive )

Arguments

  • caseSensitive: if true then all namespaces are compared case sensitively in path operations, otherwise strict character equality comparison is performed

Returns

This function returns a new FileSystem translator that can be used to store (temporary) files in. If the creation of the ramdisk has failed, then false is returned.

Example

-- TODO

FileSystem Namespace Functions

FileSystem Translator Functions