LinearTapeFileSystem / ltfs

Reference implementation of the LTFS format Spec for stand alone tape drive
BSD 3-Clause "New" or "Revised" License
256 stars 77 forks source link

ltfs_ordered_copy: honor `--keep-tree` for single file copies #244

Closed softloft38p-michael closed 3 years ago

softloft38p-michael commented 3 years ago

Summary of changes

This pull request includes following changes or fixes.

Description

Single file copies did not honor the --keep-tree flag so would always end up in the destination folder regardless of tree depth of source. This changes makes it possible to copy a single file with the tree preserved. It reuses the same logic that is used for multi-file copies.

Type of change

Checklist:

piste-jp commented 3 years ago

@softloft38p-michael ,

Thank you for your PR! It looks a good improvement.