Skip to content

Commit 01e2fcf

Browse files
committed
fix API
1 parent ff832f1 commit 01e2fcf

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

script/filewatch.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
local fw = require 'bee.filewatch'
22
local fs = require 'bee.filesystem'
3+
local sys = require 'bee.sys'
34
local plat = require 'bee.platform'
45
local await = require 'await'
56
local files = require 'files'
@@ -16,7 +17,7 @@ local function isExists(filename)
1617
if plat.os ~= 'windows' then
1718
return true
1819
end
19-
local res = fs.fullpath(path)
20+
local res = sys.fullpath(path)
2021
if not res then
2122
return false
2223
end

script/meta/bee/sys.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ end
1111
function sys.dll_path()
1212
end
1313

14+
---@param path fs.path
15+
---@return fs.path?
16+
function sys.fullpath(path)
17+
end
18+
1419
return sys

0 commit comments

Comments
 (0)