sync_tree

Import in python using from mcutils.scripts.tree.from_jal import sync_tree

mcutils.scripts.tree.from_jal.sync_tree(tree: fsl.utils.filetree.filetree.FileTree, directory: str, short_names: Sequence[str], dry_run=False, echo=False, jal00=False, reverse=False, max_size=False, from_dir=None)[source]

Syncs given short names in the FileTree

Parameters
  • tree – defines templates for the input/output directories

  • directory – parent directory (should be set to ‘’ in the tree)

  • short_names – which templates should be synced

  • dry_run – do a dry run listing which files will be transferred

  • echo – prints the rsync command rather than running it

  • jal00 – runs on jalapeno00 rather than jalapeno

  • reverse – transfers to jalapeno rather than from it

  • max_size – maximum file size to include

  • from_dir – copy from given directory rather than from jalapeno