Added new, colored syncing operation messages

This commit is contained in:
2022-04-19 01:55:12 -04:00
parent b5f4e776e5
commit 66a026e327
3 changed files with 12 additions and 11 deletions
+2 -2
View File
@@ -14,12 +14,12 @@ def delete(_file_path):
try:
rmtree(f"{expanduser('~/.password-pasture/')}{_file_path}")
except FileNotFoundError:
print('\nFolder does not exist remotely.')
print('Folder does not exist remotely.')
else:
try:
remove(f"{expanduser('~/.password-pasture/')}{_file_path}.gpg")
except FileNotFoundError:
print('\nFile does not exist remotely.')
print('File does not exist remotely.')
for _device_name in listdir(expanduser('~/.config/sshyp/devices')):
open(f"{expanduser('~/.config/sshyp/deleted/')}{_file_path.replace('/', '@')}^&*{_device_name}", 'w')