mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-24 20:33:06 +00:00
Use package.config to get directory separator.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env lua5.1
|
#!/usr/bin/env lua5.1
|
||||||
|
|
||||||
local tmp = "/tmp"
|
local tmp = "/tmp"
|
||||||
local sep = "/"
|
local sep = string.match (package.config, "[^\n]+")
|
||||||
local upper = ".."
|
local upper = ".."
|
||||||
|
|
||||||
require"lfs"
|
require"lfs"
|
||||||
|
|||||||
Reference in New Issue
Block a user