Merge pull request #114 from mindw/add_get_directory
Add file.directory token
This commit is contained in:
commit
41dec88056
@ -236,6 +236,11 @@
|
||||
end
|
||||
|
||||
|
||||
function fcfg_mt.directory(fcfg)
|
||||
return path.getdirectory(fcfg.abspath)
|
||||
end
|
||||
|
||||
|
||||
function fcfg_mt.name(fcfg)
|
||||
return path.getname(fcfg.abspath)
|
||||
end
|
||||
|
Reference in New Issue
Block a user