pyslk.construct_dst_from_src

pyslk.construct_dst_from_src#

pyslk.construct_dst_from_src(src: str | Path | list, dst_gns: str | Path, recursion_depth: int = 0) str | Path | list | None#

Construct destination paths for source resources when they were archived to given destination

Parameters:
  • src (str or list) – Path, pattern or list of files that should be archived.

  • dst_gns (str) – Destination directory for archiving.

  • recursion_depth (int) – count on how often this function has called itself (stop after 50 recursive calls)

Returns:

target resource paths if src resource(s) are archived to dst_gns

Return type:

str or list or Path