The path module specification.
Modulehslua-module-path-1.2.0Haskell2010
HsLua.Module.Path
Lua module to work with file paths.
Contents
Synopsis
- value documentedModule
- value separator
- value search_path_separator
- value add_extension
- value combine
- value directory
- value filename
- value is_absolute
- value is_relative
- value join
- value make_relative
- value normalize
- value split
- value split_extension
- value split_search_path
- value treat_strings_as_paths
- Packagehslua-module-path-1.2.0
- Exports16
- LanguageHaskell2010
- LicenceMIT
- SourcePath.hs
Module
Fields
Wrapper for pathSeparator.
Wrapper for searchPathSeparator.
Path manipulation
Adds an extension to a file path. Wraps addExtension.
Join two paths with a directory separator. Wraps combine.
See Path.takeDirectory
See Path.takeFilename
See Path.isAbsolute
See Path.isRelative
See Path.joinPath
See Path.normalise
See Path.splitDirectories.
Note that this does not wrap splitPath, as that function
adds trailing slashes to each directory, which is often inconvenient.
See Path.splitExtension
Wraps function splitSearchPath.