mypath.lua

changeset 35
2f927eae429b
parent 26
77cd7b8fb6a6
equal deleted inserted replaced
34:4c7122a505d4 35:2f927eae429b
26 return d, b 26 return d, b
27 end 27 end
28 end 28 end
29 29
30 function path.dirname(p) 30 function path.dirname(p)
31 return tuple.fst(dirbasename(p)) 31 return tuple.fst(path.dirbasename(p))
32 end 32 end
33 33
34 function path.dirname_slash(p) 34 function path.dirname_slash(p)
35 local dn=dirname(p) 35 local dn=dirname(p)
36 if dn=="" then 36 if dn=="" then

mercurial