FSharpAux


PathFileName

Namespace: FSharpAux.IO

Performs operations on String instances that contain file or directory path information. These operations are performed in a cross-platform manner.

Nested types and modules

TypeDescription
IllegalFileNameChar

Functions and values

Function or valueDescription
changeExtension fullname extension
Signature: fullname:string -> extension:string -> string
checkPathForIllegalChars(path)
Signature: path:string -> unit
checkSuffix x y
Signature: x:string -> y:string -> bool
chopExtension(s)
Signature: s:string -> string
combine path1 path2
Signature: path1:string -> path2:string -> string
combineAll(pathes)
Signature: pathes:string [] -> string
directoryName(s)
Signature: s:string -> string
fileNameOfPath(s)
Signature: s:string -> string
fileNameWithoutExtension(s)
Signature: s:string -> string
hasExtension(s)
Signature: s:string -> bool
illegalPathChars
Signature: char []
normalizeFileName(fileName)
Signature: fileName:string -> string

Normalizes a filename towards plattform specific directory separator char. Removes the directory separator char at the end.

Active patterns

Active patternDescription
( |EndsWith|_| ) extension file
Signature: extension:string -> file:string -> unit option

Active Pattern for determining file extension.

CompiledName: |EndsWith|_|

( |File|Directory| )(fileSysInfo)
Signature: fileSysInfo:FileSystemInfo -> Choice<FileInfo,(DirectoryInfo * IEnumerable<FileSystemInfo>)>

Active pattern which discriminates between files and directories.

CompiledName: |File|Directory|

( |FileInfoFullName| )(f)
Signature: f:FileInfo -> string

Active Pattern for determining file name.

CompiledName: |FileInfoFullName|

( |FileInfoNameSections| )(f)
Signature: f:FileInfo -> string * string * string

Active Pattern for determining FileInfoNameSections.

CompiledName: |FileInfoNameSections|

Fork me on GitHub