diff options
| author | Elisa Sohier <elisa.sohier@art-software.fr> | 2019-08-01 10:13:54 +0200 |
|---|---|---|
| committer | Elisa Sohier <elisa.sohier@art-software.fr> | 2019-08-01 10:13:54 +0200 |
| commit | 914e7f72c0edb708637d06335da830f1f2b0c3da (patch) | |
| tree | 7e50e3673726690c19c651b29d50af3e6144ff45 /autosync/__init__.py | |
| parent | b454e3a4df00fc4ce60ec7a759fef1e6e849f85e (diff) | |
Prints warning on server mode
Diffstat (limited to 'autosync/__init__.py')
| -rw-r--r-- | autosync/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/autosync/__init__.py b/autosync/__init__.py index 2a63928..c627537 100644 --- a/autosync/__init__.py +++ b/autosync/__init__.py @@ -107,8 +107,12 @@ def run(): if not server: with open(os.path.join(src, ".lastsync"), "w") as f: f.write(str(time.time())) + else: + print("\033[2;3;37mServer mode, won't update timestamp\033[0m") sync(src, dst, ignoreFile, True) else: + if server: + print("\033[2;3;37mServer mode, won't update timestamp\033[0m") msg("[{} @ {}] gathering data from destination".format(name, tabname)) sync(dst, src, ignoreFile, True) if not server: |
