salvia-protocol-1.0.1: Salvia webserver protocol suite supporting URI, HTTP, Cookie and MIME.

Network.Protocol.Uri.Path

Synopsis

Documentation

extension :: FilePath :-> Maybe StringSource

Label to access the extension of a filename.

mimetype :: FilePath -> Maybe StringSource

Try to guess the correct mime type for the input file based on the file extension.

normalize :: FilePath -> FilePathSource

Normalize a path by removing or merging all dot or dot-dot segments and double slashes.

jailSource

Arguments

:: FilePath

Jail directory.

-> FilePath

Filename to jail.

-> Maybe FilePath 

Jail a filepath within a jail directory.

(/+) :: FilePath -> FilePath -> FilePathSource

Concatenate and normalize two filepaths.