Fixed local folder deletion

This commit is contained in:
2022-02-16 00:23:48 -05:00
parent ff9241368e
commit 5178377827
2 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -34,4 +34,7 @@ def check(_client_device_name):
remove(f"{expanduser('~/.config/sshyp/deleted/')}{_file}")
except FileNotFoundError:
pass
open(expanduser('~/.config/sshyp/deletion_database'), 'a').write(_file_path + '.gpg\n')
if _file.__contains__('.gpg'):
open(expanduser('~/.config/sshyp/deletion_database'), 'a').write(_file_path + '.gpg\n')
else:
open(expanduser('~/.config/sshyp/deletion_database'), 'a').write(_file_path + '\n')