ODRCS4NCOVGAWMYRI56DV242LFO6KY7N3O2JQ4UBZJVP7WOAXWFQC
ZLEPKWDJAKYNSLOAI3IS3H4SERERCZZJ5ZSDIYFCU6Y7J3F4FSXAC
VHQCNMARPMNBSIUFLJG7HVK4QGDNPCGNVFLHS3I4IGNVSV5MRLYQC
return string.gsub(path, "(.*)/.*", "%1")
return path:match('.*[/\\]') or './'endfunction test_dirname() check_eq(dirname('a/b'), 'a/', 'F - test_dirname') check_eq(dirname('x'), './', 'F - test_dirname/current')
return path:match('.*[/\\]') or './'
end
function test_dirname()
check_eq(dirname('a/b'), 'a/', 'F - test_dirname')
check_eq(dirname('x'), './', 'F - test_dirname/current')