mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-29 21:36:31 -04:00
Removed unnecessary output when shearing a non-existent entry
Former-commit-id: 7c264de0ebf49889e309d43d1ad5a7483845308e Former-commit-id: 84c4c04e1bd4b085b457ddbd8184c9c3b028dcd1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user