summaryrefslogtreecommitdiff
path: root/xmake/core/base/path.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-03-01 19:14:21 +0800
committerruki <[email protected]>2016-03-01 19:14:21 +0800
commit197c9a41fdb374f8338c6dd40af8df4eb5371b29 (patch)
treef0a686ce0615523f87848386973d2328afe89695 /xmake/core/base/path.lua
parentdb1a45865998fb00bf46baeaada017d9f17f9da4 (diff)
import package.module
Diffstat (limited to 'xmake/core/base/path.lua')
-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 724a03d8b..0a9d6cf41 100644
--- a/xmake/core/base/path.lua
+++ b/xmake/core/base/path.lua
@@ -89,5 +89,13 @@ function path.join(p, ...)
return path.translate(p)
end
+-- split path by the separator
+function path.split(p)
+
+ -- split it
+ return p:split("/\\")
+end
+
+
-- return module: path
return path