Skip to content

Commit

Permalink
Add consoles in listdir too
Browse files Browse the repository at this point in the history
  • Loading branch information
bill88t committed Jan 29, 2024
1 parent f1d24ef commit 1116d33
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions source/ljinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,9 @@ def listdir(path=".") -> list:
path = ljinux.api.betterpath(path)
if path == "/LjinuxRoot/dev": # Device enumeration done here.
devs = list(ljinux.devices.keys())
terms = list(pv[0]["consoles"].keys())
devs.sort()
terms.sort()
for i in devs:
for j in range(len(ljinux.devices[i])):
res.append(
Expand All @@ -810,6 +812,18 @@ def listdir(path=".") -> list:
"root",
]
)
for i in terms:
res.append(
[
i,
"c",
[7, 7, 7],
0,
time.localtime(),
"root",
"root",
]
)
else:
tmp = listdir(path)
tmp.sort()
Expand Down

0 comments on commit 1116d33

Please sign in to comment.