Modules/FileSystem/createRAMDisk

From Multi Theft Auto: Wiki
Revision as of 03:54, 23 January 2022 by Danilo (talk | contribs)
(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