Paket


Utils

Namespace: Paket

Contains methods for IO.

Nested types and modules

TypeDescription
MemoizeAsyncExResult<'TResult, 'TCached>
PackagesFolderGroupConfig
PathReference
ResolvedPackagesFolder
ModuleDescription
List
ObservableExtensions
Seq
String
Task

Functions and values

Function or valueDescription
( ++ ) x y
Signature: x:'a option -> y:'a option -> 'a option
Type parameters: 'a

CompiledName: op_PlusPlus

acceptJson
Signature: string
acceptXml
Signature: string
askYesNo question
Signature: question:string -> bool

If the guard is true then a [Y]es / [N]o question will be ask. Until the user pressed y or n.

autoAnswer
Signature: bool option
CleanDir path
Signature: path:string -> unit

Cleans a directory by deleting it and recreating it.

createDir path
Signature: path:string -> Result<unit,DomainMessage>

Creates a directory if it does not exist.

deleteDir dirInfo
Signature: dirInfo:DirectoryInfo -> unit
DirectoryInfo str
Signature: str:string -> DirectoryInfo
dirSeparator
Signature: string
emptyDir dirInfo
Signature: dirInfo:DirectoryInfo -> unit
endsWith text x
Signature: text:string -> x:^a -> bool
Type parameters: ^a
FileInfo str
Signature: str:string -> FileInfo
FindAllFiles (folder, pattern)
Signature: (folder:string * pattern:string) -> FileInfo []

Gets all files with the given pattern

force lz
Signature: lz:Lazy<'a> -> 'a
Type parameters: 'a
getDirectoryInfoForLocalNuGetFeed (...)
Signature: pathInfo:PathReference -> alternativeProjectRoot:string option -> root:string -> DirectoryInfo
getFileEncoding path
Signature: path:string -> Encoding
GetHomeDirectory ()
Signature: unit -> string
getSha512File filePath
Signature: filePath:string -> string
getSha512Stream stream
Signature: stream:Stream -> string
isLinux
Signature: bool

Determines if the current system is a Linux system

isMacOS
Signature: bool

Determines if the current system is a MacOs system

isMatchingOperatingSystem (...)
Signature: operatingSystemFilter:string option -> bool
isMatchingPlatform operatingSystemFilter
Signature: operatingSystemFilter:string option -> bool
isMono
Signature: bool

Determines if the current system is a mono system Todo: Detect mono on windows

isMonoRuntime
Signature: bool
isNotNull x
Signature: x:'?11531 -> bool
Type parameters: '?11531
isUnix
Signature: bool

Determines if the current system is an Unix system

isWindows
Signature: bool

Determines if the current system is a Windows system

monoPath
Signature: string
normalizeHomeDirectory path
Signature: path:string -> string
normalizeLineEndings text
Signature: text:string -> string
normalizeLocalPath path
Signature: path:string -> PathReference
normalizePath path
Signature: path:string -> string
notNullOrEmpty
Signature: string -> bool
parseKeyValuePairs s
Signature: s:string -> Dictionary<string,string>
ProgramFiles
Signature: string

The path of the "Program Files" folder - might be x64 on x64 machine

ProgramFilesX86
Signature: string

The path of Program Files (x86) It seems this covers all cases where PROCESSOR_ARCHITECTURE may misreport and the case where the other variable PROCESSOR_ARCHITEW6432 can be null

readAnswer ()
Signature: unit -> string
removeComment text
Signature: text:string -> string
removeFile fileName
Signature: fileName:string -> Result<unit,DomainMessage>
rethrowf f inner fmt
Signature: f:(string * 'a -> 'b) -> inner:'a -> fmt:StringFormat<'c,'d> -> 'c
Type parameters: 'a, 'b, 'c, 'd
RunInLockedAccessMode (...)
Signature: (lockedFolder:string * action:(unit -> 'a)) -> 'a
Type parameters: 'a
saveFile fileName contents
Signature: fileName:string -> contents:string -> Result<unit,DomainMessage>
saveNormalizedXml fileName doc
Signature: fileName:string -> doc:XmlDocument -> Result<unit,DomainMessage>
sndOf3 (arg1, v, arg3)
Signature: ('?11517 * v:'?11518 * '?11519) -> '?11518
Type parameters: '?11517, '?11518, '?11519
SystemRoot
Signature: string

The system root environment variable. Typically "C:\Windows"

thirdOf3 (arg1, arg2, v)
Signature: ('?11521 * '?11522 * v:'?11523) -> '?11523
Type parameters: '?11521, '?11522, '?11523
TimeSpanToReadableString span
Signature: span:TimeSpan -> string
toLower str
Signature: str:^a -> string
Type parameters: ^a
tryGet key this
Signature: key:^k -> this:^a -> 'v option
Type parameters: ^k, ^a, 'v
windowsPath path
Signature: path:string -> string

Type extensions

Type extensionDescription
AddLine(text)
Signature: text:string -> unit

CompiledName: StringBuilder.AddLine

AppendLinef(text)
Signature: text:StringFormat<'a,StringBuilder> -> 'a
Type parameters: 'a

CompiledName: StringBuilder.AppendLinef

Fork me on GitHub