Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
p.chomp!("/")
if string.sub(p, -1, -1) == "/" then
p=string.sub(p, 1, -2)
end
p = p.strip_suffix(std::path::is_separator).unwrap_or(p);