Zvariant object.R/AllGenerics.R, R/zvariant-methods.R
copy_zvariant-methods.RdCorresponding files on the file system are immediately created. In orderd
to modify the variant, manipulate the returned Zvariant object and
use save_zvariant method.
copy_zvariant(x, name, dir) # S4 method for Zvariant,character,character copy_zvariant(x, name, dir)
| x | Zvariant object. |
|---|---|
| name | Characted string naming the copied variant. |
| dir | Characted string directory where the new variant is created on file system. |
Zvariant object
If the variant being copied has results, they are not copied to the new variant.
Relative paths in spp-file are translated into absolute paths as otherwise dealing with them might be tricky.