Modules/FileSystem/translator/getOutbreakEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ This function gets the outbreak-policy of a file translator. If outbreak is enabled then file path requests outside of the translator root are allowed. Otherwise the user can only access files that are accessible from inside the translator root directory. ==Syntax== <syntaxhighlight lang="lua"> bool translator:setOutbreakEnabled () </syntaxhighlight> ==Returns== This function returns true if the outbreak-policy is enabled for this translator, false otherwise....")
 
No edit summary
 
Line 1: Line 1:
<pageclass class="#3c82c8" subcaption="Translator function"></pageclass>
__NOTOC__
__NOTOC__
This function gets the outbreak-policy of a file translator. If outbreak is enabled then file path requests outside of the translator root are allowed. Otherwise the user can only access files that are accessible from inside the translator root directory.
This function gets the outbreak-policy of a file translator. If outbreak is enabled then file path requests outside of the translator root are allowed. Otherwise the user can only access files that are accessible from inside the translator root directory.

Latest revision as of 03:32, 23 January 2022

This function gets the outbreak-policy of a file translator. If outbreak is enabled then file path requests outside of the translator root are allowed. Otherwise the user can only access files that are accessible from inside the translator root directory.

Syntax

bool translator:setOutbreakEnabled ()

Returns

This function returns true if the outbreak-policy is enabled for this translator, false otherwise.

Example

-- TODO

FileSystem Translator Functions