copy files from one folder to another

Hello,

What is the best way to copy files (png, database and text) from resource directory to documents or cache directory ?

Is there a move file command ? Do we need to open, stream datas and write elsewhere to copy file ? It is a very slow way.

Any idea ?

Best,

Frédéric [import]uid: 5578 topic_id: 24704 reply_id: 324704[/import]