From 361e63e5167704f1ee04efef10924acff5d784f2 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 27 Nov 2025 00:49:01 +0800 Subject: fix cl and path --- xmake/core/base/path.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xmake/core/base/path.lua b/xmake/core/base/path.lua index 0248fed67..9dc2ecd7d 100644 --- a/xmake/core/base/path.lua +++ b/xmake/core/base/path.lua @@ -106,6 +106,14 @@ function _instance:extension() return path.extension(self:str()) end +function _instance:startswith(prefix) + return self:str():startswith(tostring(prefix)) +end + +function _instance:endswith(suffix) + return self:str():endswith(tostring(suffix)) +end + function _instance:directory() return path.new(path.directory(self:str()), self._TRANSFORM) end -- cgit v1.3.1