Skip to content

Commit 74134c9

Browse files
committed
Revert "适配 bee.sys"
This reverts commit c59bd7f.
1 parent 32c117e commit 74134c9

File tree

7 files changed

+11
-21
lines changed

7 files changed

+11
-21
lines changed

script/files.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
local platform = require 'bee.platform'
22
local fs = require 'bee.filesystem'
3-
local sys = require 'bee.sys'
43
local config = require 'config'
54
local glob = require 'glob'
65
local furi = require 'file-uri'
@@ -71,7 +70,7 @@ local function getRealParent(path)
7170
== path :string():gsub('^%w+:', string.lower) then
7271
return path
7372
end
74-
local res = sys.fullpath(path)
73+
local res = fs.fullpath(path)
7574
return getRealParent(parent) / res:filename()
7675
end
7776

script/filewatch.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
local fw = require 'bee.filewatch'
22
local fs = require 'bee.filesystem'
33
local plat = require 'bee.platform'
4-
local sys = require 'bee.sys'
54
local await = require 'await'
65
local files = require 'files'
76

@@ -17,7 +16,7 @@ local function isExists(filename)
1716
if plat.os ~= 'windows' then
1817
return true
1918
end
20-
local res = sys.fullpath(path)
19+
local res = fs.fullpath(path)
2120
if not res then
2221
return false
2322
end

script/meta/bee/filesystem.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---@meta bee.filesystem
1+
---@meta
22

33
---@class fs.path
44
---@operator div: fs.path
@@ -73,6 +73,11 @@ end
7373
function fs.canonical(path)
7474
end
7575

76+
---@param path fs.path
77+
---@return fs.path
78+
function fs.fullpath(path)
79+
end
80+
7681
---@param path fs.path
7782
---@return fs.path
7883
function fs.absolute(path)

script/meta/bee/filewatch.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---@meta bee.filewatch
1+
---@meta
22

33
---@class bee.filewatch.instance
44
local instance = {}

script/meta/bee/socket.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---@meta bee.socket
1+
---@meta
22

33
---@alias bee.socket.protocol
44
---| 'tcp'

script/meta/bee/sys.lua

Lines changed: 0 additions & 13 deletions
This file was deleted.

script/meta/bee/thread.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---@meta bee.thread
1+
---@meta
22

33
---@class bee.thread
44
local thread = {}

0 commit comments

Comments
 (0)