diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-01-06 20:12:03 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-01-06 20:12:03 +0000 | 
| commit | 9e6d35490a6542f9c97607f93c2ef8ca8e03cbcc (patch) | |
| tree | dd2a1ddf0476664c2b823409c36cbccd52662ca7 /utils/sync-source/lib/transfer/transfer_spec.py | |
| parent | 3bd2e91faeb9eeec1aae82c64a3253afff551cfd (diff) | |
Notes
Diffstat (limited to 'utils/sync-source/lib/transfer/transfer_spec.py')
| -rw-r--r-- | utils/sync-source/lib/transfer/transfer_spec.py | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/utils/sync-source/lib/transfer/transfer_spec.py b/utils/sync-source/lib/transfer/transfer_spec.py new file mode 100644 index 000000000000..cc76c70bf41c --- /dev/null +++ b/utils/sync-source/lib/transfer/transfer_spec.py @@ -0,0 +1,11 @@ +class TransferSpec(object): +    def __init__(self, source_path, exclude_paths, dest_path): +        self.source_path = source_path +        self.exclude_paths = exclude_paths +        self.dest_path = dest_path + +    def __repr__(self): +        fmt = ( +            "TransferSpec(source_path='{}', exclude_paths='{}', " +            "dest_path='{}')") +        return fmt.format(self.source_path, self.exclude_paths, self.dest_path) | 
