Jump to content
  • 1

How to copy/move file into another folder?


NekoMage

Question

Posted

Hi I'm new in here, how to move/copy a file with lua script? Like this

If using terminal

cp file1.txt file2.txt

Or

mv file1.txt new-file1.txt

 

How to copy like that? Are GG had a function like exec function?

5 answers to this question

Recommended Posts

  • Administrators
Posted

Copying a file is not magic.
The cp utility opens two files, one for reading, one for writing, and then copying the contents. All this can be done on Lua.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.