From e74b8282c6b10168abe48f100683cdbf90ad3783 Mon Sep 17 00:00:00 2001 From: Izaya Date: Fri, 25 May 2018 10:51:32 +1000 Subject: [PATCH] made fs.resolve remove trailing /s --- Embedded/ufs.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/Embedded/ufs.lua b/Embedded/ufs.lua index dc9ac9e..73e469b 100644 --- a/Embedded/ufs.lua +++ b/Embedded/ufs.lua @@ -14,6 +14,7 @@ function fs.resolve(path) for i = 2, #segments do rpath = rpath .. segments[i] .. "/" end + rpath = rpath:match("(.+)/") or rpath return segments[1],rpath end