diff options
Diffstat (limited to 'server-beta/src/workspace/workspace.lua')
-rw-r--r-- | server-beta/src/workspace/workspace.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server-beta/src/workspace/workspace.lua b/server-beta/src/workspace/workspace.lua index d5e6310e..37ec2d7b 100644 --- a/server-beta/src/workspace/workspace.lua +++ b/server-beta/src/workspace/workspace.lua @@ -186,4 +186,9 @@ function m.findUrisByRequirePath(path, whole) return results end +function m.getRelativePath(uri) + local path = furi.decode(uri) + return fs.relative(fs.path(path), fs.path(m.path)):string() +end + return m |