copy. Copying file   [3.2.2]

^file:copy[source filename;filename for new file]   

The method copy file.

Note: you should be very careful with everything that involves writing within web-space, as this feature (writing something to somewhere) is now widely used by malicious users.

Example
^file:copy[/path/source.txt;/path/destination.txt]

Will copy
source.txt file.


Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 05.02.2008