From ca007f55ac9f7d5c93075cb7677bcbdefca36849 Mon Sep 17 00:00:00 2001 From: Cuan Date: Wed, 16 Feb 2022 00:42:16 -0500 Subject: [PATCH] '.' is no longer an unsupported character --- bin/sshyp-shear.py | 11 ++++------- extra/manpage | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/bin/sshyp-shear.py b/bin/sshyp-shear.py index ff63f41..2730cf7 100755 --- a/bin/sshyp-shear.py +++ b/bin/sshyp-shear.py @@ -21,20 +21,17 @@ def delete(_file_path): except FileNotFoundError: print('\nFile does not exist remotely.\n') for _device_name in listdir(expanduser('~/.config/sshyp/devices')): - open(f"{expanduser('~/.config/sshyp/deleted/')}{_file_path.replace('/', '@')}.{_device_name}.del", 'w') + open(f"{expanduser('~/.config/sshyp/deleted/')}{_file_path.replace('/', '@')}^&*{_device_name}^&*del", 'w') def check(_client_device_name): open(expanduser('~/.config/sshyp/deletion_database'), 'w').write('') for _file in listdir(expanduser('~/.config/sshyp/deleted')): - _file_path = _file.replace('.gpg', '').replace('@', '/').split('.')[0] - _device = _file.replace('.gpg', '').split('.')[1] + _file_path = _file.replace('@', '/').split('^&*')[0] + _device = _file.split('^&*')[1] if _device == _client_device_name: try: remove(f"{expanduser('~/.config/sshyp/deleted/')}{_file}") except FileNotFoundError: pass - 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') + open(expanduser('~/.config/sshyp/deletion_database'), 'a').write(_file_path + '\n') diff --git a/extra/manpage b/extra/manpage index f4050e2..32ca63d 100644 --- a/extra/manpage +++ b/extra/manpage @@ -78,7 +78,7 @@ The following limitations will be corrected in future updates: Currently, the entry list displays each entry with the file extension ".gpg" visible (which you do not type when reading, modifying, or creating an entry). This will be corrected when the new entry list is added. The following characters/character sequences are not supported in entry/folder titles: - . @ ^&* + @ ^&* .SH SETUP sshyp operates on a client-server model, and thus requires you to have access to your own server (whether it be a physical home server or a cloud rental) with remote access via SSH.