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

修改多个文件中的默认路径变量,将/leonos统一替换为/rc,以简化路径命名并保持一致性
This commit is contained in:
2025-09-01 10:33:32 +08:00
parent 2b26c66112
commit 3009389313
13 changed files with 18 additions and 18 deletions

View File

@@ -22,7 +22,7 @@ local function expect(...)
end
-- path resolution:
-- if the path begins with /leonos, then redirect to wherever that actually
-- if the path begins with /rc, 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 /leonos into the root listing
if not exists("/leonos") then
-- inject /rc into the root listing
if not exists("/rc") then
files[#files+1] = "rc"
end
end