mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-05 00:27:13 -04:00
Fix root-level entries being displayed incorrectly in the entry list
This commit is contained in:
@@ -24,6 +24,8 @@ def entry_list_gen(_directory=f"{home}/.local/share/sshyp/"):
|
|||||||
_color_alternator = 1
|
_color_alternator = 1
|
||||||
if _ran:
|
if _ran:
|
||||||
print(f"\n\n\u001b[38;5;7;48;5;8m{_root.replace(f'{home}/.local/share/sshyp', '', 1)}/\u001b[0m")
|
print(f"\n\n\u001b[38;5;7;48;5;8m{_root.replace(f'{home}/.local/share/sshyp', '', 1)}/\u001b[0m")
|
||||||
|
elif _root == f"{home}/.local/share/sshyp/" and len(_files) > 0:
|
||||||
|
print(f"\n\n\u001b[38;5;7;48;5;8m/\u001b[0m")
|
||||||
_char_counter = 0
|
_char_counter = 0
|
||||||
for _filename in sorted(_files):
|
for _filename in sorted(_files):
|
||||||
if _color_alternator > 0:
|
if _color_alternator > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user