diff options
Diffstat (limited to 'gamechestcli/rsync.py')
-rw-r--r-- | gamechestcli/rsync.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gamechestcli/rsync.py b/gamechestcli/rsync.py new file mode 100644 index 0000000..f27c4f3 --- /dev/null +++ b/gamechestcli/rsync.py @@ -0,0 +1,28 @@ +#!/usr/bin/python3 + +import subprocess + +class Rsync: + + def __init__(self, src, dst): + pass + + #def start(src, dst): + + def terminate(self): + + pass + + def poll(self): + pass + + + +def rsync(src, dst): + subprocess.run( + ['rsync', + '--partial', + # format: %l length in bytes, %b bytes actually transferred, %f + # filename. + '--out-format=%l %b %f', + ]) |