pyslk.rename_raw

Contents

pyslk.rename_raw#

pyslk.rename_raw(old_name: str | Path, new_name: str | Path, return_type: int = 0) str | int | CompletedProcess#

Rename a folder or file; moving is not possible

Parameters:
  • old_name (str or Path) – folder or file name (full GNS path)

  • new_name (str or Path) – new name (only name; no full GNS path)

  • 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]