summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvg <vgm+dev@devys.org>2022-08-11 14:01:54 +0200
committervg <vgm+dev@devys.org>2022-08-11 14:01:54 +0200
commit7fe1ae0d26c3790ac81a0ee7b1bf01a383388575 (patch)
treedefc9c750aa8f0699a3e1d6ac3a4a1add8420fa3
parent6dbd67aebc5fc0ec5424c52b6418c618567dee7f (diff)
downloadgamechest-7fe1ae0d26c3790ac81a0ee7b1bf01a383388575.tar.gz
gamechest-7fe1ae0d26c3790ac81a0ee7b1bf01a383388575.tar.bz2
gamechest-7fe1ae0d26c3790ac81a0ee7b1bf01a383388575.zip
git-sync on dita
-rw-r--r--gamechestcli/rsync.py28
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',
+ ])