file:copy

Copies a file or a directory.

copy($source as xs:string, $target as xs:string) ➔ empty-sequence()

Arguments

 

$source

xs:string

The path to the source file/directory

 

$target

xs:string

The path to the target file/directory

Result

empty-sequence()

Namespace

http://expath.org/ns/file

Links to specifications

EXPath File Module 1.0

EXPath File Module 4.0

Saxon availability

Available in XPath 2.0 and later versions. Implemented since Saxon 9.5. Requires Saxon-PE or Saxon-EE. Available for all platforms.