Modules/FileSystem/copyFile: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ This function copies files between two translators. ==Syntax== <syntaxhighlight lang="lua"> bool fsnamespace.copyFile( translator srcTrans, string srcPath, translator dstTrans, string dstPath ) </syntaxhighlight> ==Arguments== *'''srcTrans:''' source translator for the file of origin *'''srcPath:''' path into the source translator *'''dstTrans:''' target translator *'''dstPath:''' path into the target translator ==Returns== This function returns true if the...")
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<pageclass class="#e36242" subcaption="Namespace function"></pageclass>
__NOTOC__
__NOTOC__
This function copies files between two translators.
This function copies files between two translators.
Line 21: Line 22:
</syntaxhighlight>
</syntaxhighlight>
{{:Modules/FileSystem/namespace/functions}}
{{:Modules/FileSystem/namespace/functions}}
{{:Modules/FileSystem/file/functions}}


{{:Modules/FileSystem/translator/functions}}
{{:Modules/FileSystem/translator/functions}}

Latest revision as of 03:58, 23 January 2022

This function copies files between two translators.

Syntax

bool fsnamespace.copyFile( translator srcTrans, string srcPath, translator dstTrans, string dstPath )

Arguments

  • srcTrans: source translator for the file of origin
  • srcPath: path into the source translator
  • dstTrans: target translator
  • dstPath: path into the target translator

Returns

This function returns true if the copy has succeeded, false otherwise.

Example

-- TODO

FileSystem Namespace Functions

FileSystem Translator Functions