• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nightconcept / almandine / 14715174283

28 Apr 2025 06:32PM UTC coverage: 37.748%. First build
14715174283

push

github

web-flow
Merge 789647aa5 into 78f97e22e

477 of 566 new or added lines in 14 files covered. (84.28%)

1693 of 4485 relevant lines covered (37.75%)

11.33 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

58.33
/src/utils/filesystem.lua
1
--[[
2
  Filesystem Utilities
3

4
  Provides helpers for cross-platform directory creation and related filesystem tasks.
5
]]--
6

7
local M = {}
3✔
8

9
--- Ensures the lib directory exists (src/lib).
10
function M.ensure_lib_dir()
3✔
NEW
11
  local sep = package.config:sub(1,1)
×
NEW
12
  local path = "src" .. sep .. "lib"
×
NEW
13
  if sep == "\\" then
×
NEW
14
    os.execute("mkdir " .. path .. " >nul 2>&1")
×
15
  else
NEW
16
    os.execute("mkdir -p " .. path .. " >/dev/null 2>&1")
×
17
  end
18
  -- Remove noisy warning, only print if directory is truly missing (optional: check existence)
19
end
20

21
--- Joins path segments using the correct platform separator.
22
-- @param ... string Path segments
23
-- @return string Joined path
24
function M.join_path(...)
3✔
25
  local sep = package.config:sub(1,1)
5✔
26
  local args = {...}
5✔
27
  return table.concat(args, sep)
5✔
28
end
29

30
return M
3✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc