summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-11-27 00:49:01 +0800
committerruki <[email protected]>2025-11-27 00:49:01 +0800
commit361e63e5167704f1ee04efef10924acff5d784f2 (patch)
treeba6340b36aa1ba6b92d8c05e9f6d2e65c71986e5
parentfee49894d216c926cd789ccf7883e220971c20ef (diff)
fix cl and path
-rw-r--r--xmake/core/base/path.lua8
1 files changed, 8 insertions, 0 deletions
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