refactor: 将默认路径从/rc更改为/leonos

统一修改代码中的默认路径,从/rc变更为/leonos,以反映系统名称变更
This commit is contained in:
2025-09-01 10:15:12 +08:00
parent d23c85f08a
commit 44a696758d
12 changed files with 17 additions and 17 deletions

View File

@@ -22,7 +22,7 @@ local function expect(...)
end
-- path resolution:
-- if the path begins with /rc, then redirect to wherever that actually
-- if the path begins with /leonos, then redirect to wherever that actually
-- is; otherwise, resolve the path based on the current program's working
-- directory
-- this is to allow .OS to run from anywhere
@@ -72,8 +72,8 @@ function fs.list(path)
local _, files = pcall(list, path)
if not _ then return nil, files end
if path == "/" then
-- inject /rc into the root listing
if not exists("/rc") then
-- inject /leonos into the root listing
if not exists("/leonos") then
files[#files+1] = "rc"
end
end