mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-28 04:46:34 -04:00
Removed useless pass statement in sync()
This commit is contained in:
+1
-3
@@ -523,9 +523,7 @@ def sync(): # calls sshync to sync changes to the user's server
|
||||
_folder_database = None
|
||||
s_exit(6)
|
||||
for _folder in _folder_database:
|
||||
if Path(f"{expanduser('~')}{_folder[:-1]}").is_dir():
|
||||
pass
|
||||
else:
|
||||
if not Path(f"{expanduser('~')}{_folder[:-1]}").is_dir():
|
||||
print(f"\u001b[38;5;2m{_folder.replace('/.local/share/sshyp/', '')[:-1]}/\u001b[0m does not exist locally, "
|
||||
f"creating...")
|
||||
Path(f"{expanduser('~')}{_folder[:-1]}").mkdir(0o700, parents=True, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user