We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b5ffd7 commit 310fb60Copy full SHA for 310fb60
script/files.lua
@@ -73,6 +73,9 @@ end
73
---@param uri uri
74
---@return uri
75
function m.getRealUri(uri)
76
+ if platform.OS ~= 'Windows' then
77
+ return uri
78
+ end
79
local filename = furi.decode(uri)
80
-- normalize uri
81
uri = furi.encode(filename)
script/filewatch.lua
@@ -1,5 +1,6 @@
1
local fw = require 'bee.filewatch'
2
local fs = require 'bee.filesystem'
3
+local plat = require 'bee.platform'
4
local await = require 'await'
5
6
local MODIFY = 1 << 0
@@ -11,6 +12,9 @@ local function isExists(filename)
11
12
if not suc or not exists then
13
return false
14
end
15
+ if plat.OS ~= 'Windows' then
16
+ return true
17
18
local suc, res = pcall(fs.fullpath, path)
19
if not suc then
20
0 commit comments