Copier module¶
-
synchronizer.copier.
process_paths
(src_path, trg_path, force_overwrite=True, **kwargs)¶ Copies
src_path
totrg_path
. Takes both files and directories as source. If given source is a file and it’s part of a sequence it’ll find and copy the entire sequence of files.- Arguments:
src_path
{str} – Path to a file or directorytrg_path
{str} – Path to a directory- Keyword Arguments:
force_overwrite
{bool} – Empties trg_path before copying src_path contents. If src_path it’s a file it’ll only remove that file. (default: {True})- Optional Keyword Arguments:
include_tx
{bool} – If tx files are found that match given src_path, they’re also copied.only_tx
{bool} – Finds tx files that match given src_path, but copies tx only, not src_path. For this flag to work, include_tx must be passed and set to True.find_sequence
{bool} – If set to False, it’ll skip trying to find sequence files for given src_path (default: {True})- Returns:
- [bool] – If files were processed correctly, True is returned. False otherwise.