forked from mirror/codesnap.nvim
9 lines
153 B
Lua
9 lines
153 B
Lua
local path_utils = {}
|
|
|
|
function path_utils.back(path)
|
|
local parsed_path, _ = path:gsub("/[^\\/]+/?$", "")
|
|
|
|
return parsed_path
|
|
end
|
|
|
|
return path_utils
|