pyslk.list_clone_file

pyslk.list_clone_file#

pyslk.list_clone_file(resource_path: str | Path | list[str] | list[pathlib.Path] | set[str] | set[pathlib.Path], column_names=['permissions', 'owner', 'group', 'filesize', 'timestamp_mtime', 'timestamp_created', 'timestamp_modified', 'timestamp_storage', 'tape_id', 'filename']) <Mock name='mock.DataFrame' id='139757892385232'>#

Return pandas.DataFrame containing results from search id

Calls list_clone_file_raw() and parses the return string into a pandas.DataFrame(). Assumes six output columns of ‘slk_helpers list_clone_file’ having the widths 12, 16, 999 (999 => as wide as necessary).

Parameters:
  • resource_path (str or path-like or list[str] or list[Path] or set[str] or set[Path]) – namespace or resource

  • column_names (list) – names of the columns in the pandas.DataFrame

Returns:

output of ‘slk_helpers list_search’ parsed into a pandas.DataFrame with three columns (permissions, size, filename)

Return type:

pandas.DataFrame