directory-listing-webpage-parser-0.1.0.0: directory listing webpage parser

Safe HaskellSafe
LanguageHaskell2010

Text.HTML.DirectoryListing.Type

Synopsis

Documentation

data Entry Source

The type Entry represents a clickable link in web page.

Constructors

Entry 

Fields

visibleName :: Text

this is a name that visible in .html (web engines will stripe name is it is too long)

href :: Text

href in the tag's attribute

lastModified :: LocalTime

last modified time (Note that LocalTime has Ord instance)

fileSize :: Maybe Integer

file size represented in bytes. when the Entry is a directory, this value is Nothing.

Instances

decodedName :: Entry -> Text Source

get the real file name from an Entry (by decoding href)

isDirectory :: Entry -> Bool Source

is this Entry a directory?