Skip to content

Commit 361e63e

Browse files
committed
fix cl and path
1 parent fee4989 commit 361e63e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

xmake/core/base/path.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ function _instance:extension()
106106
return path.extension(self:str())
107107
end
108108

109+
function _instance:startswith(prefix)
110+
return self:str():startswith(tostring(prefix))
111+
end
112+
113+
function _instance:endswith(suffix)
114+
return self:str():endswith(tostring(suffix))
115+
end
116+
109117
function _instance:directory()
110118
return path.new(path.directory(self:str()), self._TRANSFORM)
111119
end

0 commit comments

Comments
 (0)