File tree Expand file tree Collapse file tree 8 files changed +23
-12
lines changed
Expand file tree Collapse file tree 8 files changed +23
-12
lines changed Original file line number Diff line number Diff line change 11local platform = require ' bee.platform'
22local fs = require ' bee.filesystem'
3+ local sys = require ' bee.sys'
34local config = require ' config'
45local glob = require ' glob'
56local furi = require ' file-uri'
@@ -70,7 +71,7 @@ local function getRealParent(path)
7071 == path :string ():gsub (' ^%w+:' , string.lower ) then
7172 return path
7273 end
73- local res = fs .fullpath (path )
74+ local res = sys .fullpath (path )
7475 return getRealParent (parent ) / res :filename ()
7576end
7677
Original file line number Diff line number Diff line change 11local fw = require ' bee.filewatch'
22local fs = require ' bee.filesystem'
33local plat = require ' bee.platform'
4+ local sys = require ' bee.sys'
45local await = require ' await'
56local files = require ' files'
67
@@ -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
Original file line number Diff line number Diff line change 1- --- @meta
1+ --- @meta bee.filesystem
22
33--- @class fs.path
44--- @operator div : fs.path
7373function fs .canonical (path )
7474end
7575
76- --- @param path fs.path
77- --- @return fs.path
78- function fs .fullpath (path )
79- end
80-
8176--- @param path fs.path
8277--- @return fs.path
8378function fs .absolute (path )
Original file line number Diff line number Diff line change 1- --- @meta
1+ --- @meta bee.filewatch
22
33--- @class bee.filewatch.instance
44local instance = {}
Original file line number Diff line number Diff line change 1- --- @meta
1+ --- @meta bee.socket
22
33--- @alias bee.socket.protocol
44--- | ' tcp'
Original file line number Diff line number Diff line change 1+ --- @meta bee.sys
2+
3+ --- @class bee.sys
4+ local sys = {}
5+
6+ --- @param path fs.path
7+ --- @return fs.path
8+ function sys .fullpath (path ) end
9+
10+ --- @return fs.path
11+ function sys .exe_path () end
12+
13+ return sys
Original file line number Diff line number Diff line change 1- --- @meta
1+ --- @meta bee.thread
22
33--- @class bee.thread
44local thread = {}
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ package.path = package.path
22 .. ' ;./test/?.lua'
33 .. ' ;./test/?/init.lua'
44local fs = require ' bee.filesystem'
5- local rootPath = fs .exe_path ():parent_path ():parent_path ():string ()
5+ local sys = require ' bee.sys'
6+ local rootPath = sys .exe_path ():parent_path ():parent_path ():string ()
67ROOT = fs .path (rootPath )
78TEST = true
89DEVELOP = true
You can’t perform that action at this time.
0 commit comments