Removed unnecessary output when shearing a non-existent entry

Former-commit-id: 7c264de0ebf49889e309d43d1ad5a7483845308e
Former-commit-id: 84c4c04e1bd4b085b457ddbd8184c9c3b028dcd1
This commit is contained in:
2023-06-20 14:35:59 -04:00
parent 0c78a32195
commit 9d94ba1eb9
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -84,11 +84,15 @@ def remote_list_fetch(_user_data):
# checks for and acts upon files and folders marked for deletion
def deletion_sync(_deletion_database, _silent):
_synced = False
for _file in _deletion_database:
if _file != '':
if not _silent:
_synced = True
print(f"\u001b[38;5;208m{_file}\u001b[0m has been sheared, removing...")
delete(_file, 'locally', _silent)
if _synced:
print()
# creates matches of remote folders on the local client
+1 -1
View File
@@ -570,7 +570,7 @@ def remove_data():
decrypt(None, _quick_verify=quick_unlock_enabled)
if not ssh_error:
run(('ssh', '-i', f"{home}/.ssh/sshyp", '-p', port, f"{username_ssh}@{ip}",
f'cd /usr/lib/sshyp; python3 -c \'from sshync import delete; delete("{entry_name}", "remotely", False)\''))
f'cd /usr/lib/sshyp; python3 -c \'from sshync import delete; delete("{entry_name}", "remotely", True)\''))
else:
offline_delete(entry_name, 'locally', silent_sync)