Idris2Doc : Data.FilePath.File

Data.FilePath.File

(source)
Relative and absolute file paths, which are guaranteed
to consist of a basename plus parent directory.

Reexports

importpublic Data.FilePath

Definitions

recordFile : PathType->Type
  A file path consists of a basename and a parent
directory, which is either a relative or absolute
path.

Totality: total
Visibility: public export
Constructor: 
MkF : Patht->Body->Filet

Projections:
.file : Filet->Body
.parent : Filet->Patht

Hints:
Eq (Filet)
Eq (Filet)
Interpolation (Filet)
Interpolation (Filet)
Ord (Filet)
Ord (Filet)
Show (Filet)
Show (Filet)
.parent : Filet->Patht
Totality: total
Visibility: public export
parent : Filet->Patht
Totality: total
Visibility: public export
.file : Filet->Body
Totality: total
Visibility: public export
file : Filet->Body
Totality: total
Visibility: public export
toPath : Filet->Patht
Totality: total
Visibility: public export
(</>) : Patht->FileRel->Filet
  Concatenate a path with a relative file path.

Totality: total
Visibility: public export
Fixity Declaration: infixl operator, level 5
(/>) : Patht->Body->Filet
  Append a file or directory to a path.

Totality: total
Visibility: export
Fixity Declaration: infixl operator, level 5
split : Filet-> (Patht, Body)
  Split a file path into its parent directory and
base name.

Totality: total
Visibility: public export
(<.>) : Filet->Body->Filet
  Append a file ending to a path. If the path is empty,
this appends a hidden file/directory by prepending the
name with a dot.

Totality: total
Visibility: export
Fixity Declaration: infixr operator, level 7
isAbsolute : Filet->Bool
  Checks whether an unknown path is absolute or not.

Totality: total
Visibility: export
isHidden : Filet->Bool
  True if the file's basename starts with a dot.

Totality: total
Visibility: export
basename : Filet->Body
  Extract the basename from a file path.

Totality: total
Visibility: export
parentDirs : Filet->List (Patht)
  Returns a list of parent directories of the given path.

Totality: total
Visibility: export
splitFileName : Filet->Maybe (Filet, Body)
  Try and split a path into the stem and extension
of the basename.

Totality: total
Visibility: export
stemAndExt : Filet->Maybe (Body, Body)
  Try and split a path into the stem and extension
of the basename.

Totality: total
Visibility: export
fileStem : Filet->MaybeBody
  Try and extract the file stem from a file path.

Totality: total
Visibility: export
extension : Filet->MaybeBody
  Try and extract the extension from a file.

Totality: total
Visibility: export
normalize : Filet->Filet
  Remove references to parent directories (`..`)
by removing the according number of parent dirs.

In case of absolute paths, excess `..`s will be
silently dropped.

Totality: total
Visibility: export
parse : String->Maybe (FileAbs)
  A quite strict function for parsing absolute file paths.
This only accepts valid file bodies, so no doubling
of path separators or bodies starting with or ending
on whitespace. Sorry.

Totality: total
Visibility: public export
fromString : (s : String) -> {auto0_ : IsJust (parses)} ->FileAbs
Totality: total
Visibility: public export
parse : String->Maybe (FileRel)
  A quite strict function for parsing relative file paths.
This only accepts valid file bodies, so no doubling
of path separators or bodies starting with or ending
on whitespace. Sorry.

Totality: total
Visibility: public export
fromString : (s : String) -> {auto0_ : IsJust (parses)} ->FileRel
Totality: total
Visibility: public export
recordAnyFile : Type
  A path (relative or absolute) in a file system.

Totality: total
Visibility: public export
Constructor: 
AF : FilepathType->AnyFile

Projections:
.file : ({rec:0} : AnyFile) ->File (pathType{rec:0})
0.pathType : AnyFile->PathType

Hints:
EqAnyFile
EqAnyFile
InterpolationAnyFile
InterpolationAnyFile
OrdAnyFile
OrdAnyFile
ShowAnyFile
ShowAnyFile
0.pathType : AnyFile->PathType
Totality: total
Visibility: public export
0pathType : AnyFile->PathType
Totality: total
Visibility: public export
.file : ({rec:0} : AnyFile) ->File (pathType{rec:0})
Totality: total
Visibility: public export
file : ({rec:0} : AnyFile) ->File (pathType{rec:0})
Totality: total
Visibility: public export
parse : String->MaybeAnyFile
  A quite strict function for parsing absolute paths.
This only accepts valid file bodies, so no doubling
of path separators or bodies starting with or ending
on whitespace. Sorry.

Totality: total
Visibility: public export
split : AnyFile-> (FilePath, Body)
  Try and split a path into parent directory and
file/directory name.

Totality: total
Visibility: public export
(<.>) : AnyFile->Body->AnyFile
  Append a file ending to a path. If the path is empty,
this appends a hidden file/directory by prepending the
name with a dot.

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 7
isAbsolute : AnyFile->Bool
  Checks whether an unknown path is absolute or not.

Totality: total
Visibility: export
basename : AnyFile->Body
  Tries to extract the basename from a path.

Totality: total
Visibility: export
parentDir : AnyFile->FilePath
  Tries to extract the parent directory from a path.

Totality: total
Visibility: export
splitFileName : AnyFile->Maybe (AnyFile, Body)
  Try and split a path into base name and file extension.

Totality: total
Visibility: export
stemAndExt : AnyFile->Maybe (Body, Body)
  Try and split a path into the stem and extension
of the basename.

Totality: total
Visibility: export
fileStem : AnyFile->MaybeBody
  Try and extract the file stem from a path.

Totality: total
Visibility: export
extension : AnyFile->MaybeBody
  Try and extract the extension from a file.

Totality: total
Visibility: export
isHidden : AnyFile->Bool
  True if the file's basename starts with a dot.

Totality: total
Visibility: export