Skip to content

Link.Export

]LINK.Export [ns] <dir> [-overwrite] [-casecode] [-arrays{=name1,name2,...}] [-sysvars] [-ignoreconfig] [-text={aplan|plain}]

msg ← {opts} ⎕SE.Link.Export (ns dir)

Show User Command information in the session with ]LINK.Export -?

This function takes the same arguments as Link.Create but saves the contents of a namespace to directory without creating a Link.

If the source is an unscripted namespace, then the destination is interpreted as a directory.

If the source is anything else, then the destination is interpreted as a directory (and a correctly named file will be created there), unless it ends with a recognised extension (like .aplf), in which case it is interpreted as a file name.

Arguments

  • ns : unscripted namespace or APL name. If ns is not provided, the default is to use the current namespace.
  • dir: directory or file name

Options

  • overwrite: Allow overwriting existing files in the destination directory
  • other options have same effect as in Link.Create

Result

  • String describing the exported source and destination, along with possible failures