Step fileset-move {http://www.daisy.org/ns/pipeline/xproc}

Move a fileset to a new location

Fails if the fileset contains files outside of the base directory. No files are physically moved, that is done upon calling px:fileset-store and px:fileset-delete.

Defined in: http://www.daisy.org/pipeline/modules/fileset-utils/library.xpl

Input Ports

PortDescription
source.fileset primary
source.in-memory sequence

The input fileset

Output Ports

PortDescription
result.fileset primary
result.in-memory sequence

The output fileset at the new location.

The xml:base is changed to "target". The hrefs are not updated, unless the "flatten" option is set, in which case they are reduced to the file name. The base URI of the in-memory documents are changed accordingly, and "original-href"-attributes are added for files that exist on disk.

mapping

A d:fileset document that contains the mapping from the source files (@original-href)to the moved files (@href).

Pass this output to px:fileset-delete after the "result" output has been passed to px:fileset-store.

Options

Local NameNamespace URIDefaultDescription
target required

The target directory.

flattenfalse()

Move all files to a single directory.

prefix''

Prefix to add before file names.

Only if "flatten" option is set.