From 7fe1ae0d26c3790ac81a0ee7b1bf01a383388575 Mon Sep 17 00:00:00 2001 From: vg Date: Thu, 11 Aug 2022 14:01:54 +0200 Subject: git-sync on dita --- gamechestcli/rsync.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 gamechestcli/rsync.py (limited to 'gamechestcli') 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', + ]) -- cgit v1.2.3