:py:mod:`calliope.sync` ======================= .. py:module:: calliope.sync .. autoapi-nested-parse:: Copy music content between locations. See also: the :command:`cpe sync` command. Package Contents ---------------- Functions ~~~~~~~~~ .. autoapisummary:: calliope.sync.sync .. py:exception:: SyncException Bases: :py:obj:`RuntimeError` Error that occured during ``sync()``. Initialize self. See help(type(self)) for accurate signature. .. py:function:: sync(dry_run, target, allow_formats, album_per_dir, number_dirs, number_files, playlist) Copy items in `playlist` to `target`. The default for `allow_formats` is to allow all formats. You may instead set it to `['mp3']`, which will cause everything to be transcoded to .mp3 format. :param dry_run: print list of operations to stdout, instead of running them :param target: destination folder :param allow_formats: list of extensions to allow :param playlist: input playlist