# README
filepath 
Usage
local filepath = require("filepath")
-- filepath.ext()
local result = filepath.ext("/var/tmp/file.name")
if not(result == ".name") then error("ext") end
-- filepath.basename()
local result = filepath.basename("/var/tmp/file.name")
if not(result == "file.name") then error("basename") end
-- filepath.dir()
local result = filepath.dir("/var/tmp/file.name")
if not(result == "/var/tmp") then error("dir") end
-- filepath.join()
local result = filepath.join("/var", "tmp", "file.name")
if not(result == "/var/tmp/file.name") then error("join") end
-- filepath.glob()
local result = filepath.glob("/var/*/*.name")
if not(result[1] == "/var/tmp/file.name") then error("glob") end
# Functions
Basename lua filepath.basename(path) returns the last element of path.
Dir lua filepath.dir(path) returns all but the last element of path, typically the path's directory.
Ext lua filepath.ext(path) returns the file name extension used by path.
filepath.glob(pattern) returns the names of all files matching pattern or nil if there is no matching file.
Join lua fileapth.join(path, ...) joins any number of path elements into a single path, adding a Separator if necessary.
ListSeparator lua filepath.list_separator() OS-specific path list separator.
Loader is the module loader function.
Preload adds filepath to the given Lua state's package.preload table.
Separator lua filepath.separator() OS-specific path separator.