mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-06 00:57:14 -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
|
_folder_database = None
|
||||||
s_exit(6)
|
s_exit(6)
|
||||||
for _folder in _folder_database:
|
for _folder in _folder_database:
|
||||||
if Path(f"{expanduser('~')}{_folder[:-1]}").is_dir():
|
if not Path(f"{expanduser('~')}{_folder[:-1]}").is_dir():
|
||||||
pass
|
|
||||||
else:
|
|
||||||
print(f"\u001b[38;5;2m{_folder.replace('/.local/share/sshyp/', '')[:-1]}/\u001b[0m does not exist locally, "
|
print(f"\u001b[38;5;2m{_folder.replace('/.local/share/sshyp/', '')[:-1]}/\u001b[0m does not exist locally, "
|
||||||
f"creating...")
|
f"creating...")
|
||||||
Path(f"{expanduser('~')}{_folder[:-1]}").mkdir(0o700, parents=True, exist_ok=True)
|
Path(f"{expanduser('~')}{_folder[:-1]}").mkdir(0o700, parents=True, exist_ok=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user