MTA:Eir/FileSystem/copyFile: Difference between revisions
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...") |
mNo edit summary |
||
Line 21: | Line 21: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{:MTA:Eir/FileSystem/namespace/functions}} | {{:MTA:Eir/FileSystem/namespace/functions}} | ||
{{:MTA:Eir/FileSystem/file/functions}} | |||
{{:MTA:Eir/FileSystem/translator/functions}} | {{:MTA:Eir/FileSystem/translator/functions}} |
Latest revision as of 22:48, 16 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
- createTranslator
- createRAMDisk
- createMemoryFile
- createFileIterative
- createArchiveTranslator (not module)
- createZIPArchive (not module)
- copyFile
- copyStream
- copyStreamCount
- pathToFilename
- streamCompare
- topointer
- type
- setDoBufferAllRaw
- getDoBufferAllRaw
FileSystem File Functions
- read
- readByte
- readUByte
- readShort
- readUShort
- readInt
- readUInt
- readFloat
- readDouble
- readBoolean
- write
- writeByte
- writeUByte
- writeShort
- writeUShort
- writeInt
- writeUInt
- writeFloat
- writeDouble
- writeBoolean
- size
- stat
- tell
- seek
- eof
- flush
- isWritable
- isReadable