diff options
author | vg <vgm+dev@devys.org> | 2022-08-11 14:01:54 +0200 |
---|---|---|
committer | vg <vgm+dev@devys.org> | 2022-08-11 14:01:54 +0200 |
commit | 7fe1ae0d26c3790ac81a0ee7b1bf01a383388575 (patch) | |
tree | defc9c750aa8f0699a3e1d6ac3a4a1add8420fa3 /gamechestcli/rsync.py | |
parent | 6dbd67aebc5fc0ec5424c52b6418c618567dee7f (diff) | |
download | gamechest-7fe1ae0d26c3790ac81a0ee7b1bf01a383388575.tar.gz gamechest-7fe1ae0d26c3790ac81a0ee7b1bf01a383388575.tar.bz2 gamechest-7fe1ae0d26c3790ac81a0ee7b1bf01a383388575.zip |
git-sync on dita
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', + ]) |