Modules/FileSystem/copyFile

From Multi Theft Auto: Wiki
Revision as of 23:48, 18 January 2022 by Danilo (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 File Functions

FileSystem Translator Functions