pyslk.move_raw

Contents

pyslk.move_raw#

pyslk.move_raw(src_path: str | Path, dst_gns: str | Path, interactive: bool, return_type: int = 0) str | int | CompletedProcess#

Move namespaces/files from one parent folder to another; renaming is not possible

Parameters:
  • src_path (str or Path) – namespace or file (full GNS path)

  • dst_gns (str or Path) – new parent namespace

  • interactive (bool) – prompt user before overwrite; none-interactive: don’t overwrite

  • return_type (int) – select between 0 (== str output), 1 (== exit code), 2 (subprocess output)

Returns:

stdout of the slk call

Return type:

Union[str, int, subprocess.CompletedProcess]