Skip to main content

paste_entries_from_paths

Function paste_entries_from_paths 

Source
fn paste_entries_from_paths(
    pack: &Pack,
    paths: &[ContainerPath],
    pack_key: &str,
) -> Vec<PasteEntry>
Expand description

Expands the selected paths of a pack into entries to paste, one per file.

  • For a selected file a/b/c, the base path is a/b (parent folder), so pasting gives just c.
  • For a selected folder a/b, the base path is a (parent of folder), so pasting preserves b/....