From 4876958951dff23ed234523d89b47a854e88acea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 8 Jul 2021 15:49:10 +0800 Subject: also supports filename --- script/workspace/workspace.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'script/workspace/workspace.lua') diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua index 211c982c..fcfde027 100644 --- a/script/workspace/workspace.lua +++ b/script/workspace/workspace.lua @@ -466,6 +466,8 @@ function m.getAbsolutePath(path) return path end +---@param uri uri +---@return string function m.getRelativePath(uri) local path = furi.decode(uri) if not m.path then -- cgit v1.2.3