hslua-module-path-1.0.0: Lua module to work with file paths.
Copyright© 2021 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <albert+hslua@zeitkraut.de>
Safe HaskellNone
LanguageHaskell2010

HsLua.Module.Path

Description

Lua module to work with file paths.

Synopsis

Module

documentedModule :: LuaError e => Module e Source #

The path module specification.

Fields

Path manipulation

add_extension :: DocumentedFunction e Source #

Adds an extension to a file path. Wraps addExtension.

combine :: DocumentedFunction e Source #

Join two paths with a directory separator. Wraps combine.

directory :: DocumentedFunction e Source #

See Path.takeDirectory

filename :: DocumentedFunction e Source #

See Path.takeFilename

is_absolute :: DocumentedFunction e Source #

See Path.isAbsolute

is_relative :: DocumentedFunction e Source #

See Path.isRelative

join :: LuaError e => DocumentedFunction e Source #

See Path.joinPath

normalize :: DocumentedFunction e Source #

See Path.normalise

split :: LuaError e => DocumentedFunction e Source #

See Path.splitDirectories.

Note that this does not wrap splitPath, as that function adds trailing slashes to each directory, which is often inconvenient.

split_extension :: DocumentedFunction e Source #

See Path.splitExtension