Note: This is the migration API reference for FAKE 5. The new (modularized) API documentation can be found here. If the API is already migrated you can check here if exists in a module. More information regarding the migration can be found here

OBSOLETE

FAKE0001 Use `open Fake.IO` and `FileSystem.Shell`

FileUtils

Shell-like functions. Similar to Ruby's FileUtils.

Functions and values

Function or valueDescription
cd(path)
Signature: path:string -> unit
Attributes:
[<Obsolete("FAKE0001 Use `open Fake.IO` and `Shell.cd`")>]
OBSOLETE

FAKE0001 Use `open Fake.IO` and `Shell.cd`

Changes working directory

chdir(path)
Signature: path:string -> unit
Attributes:
[<Obsolete("FAKE0001 Use `open Fake.IO` and `Shell.chdir`")>]
OBSOLETE

FAKE0001 Use `open Fake.IO` and `Shell.chdir`

Changes working directory

cp src dest
Signature: src:string -> dest:string -> unit
Attributes:
[<Obsolete("FAKE0001 Use `open Fake.IO` and `Shell.cp`")>]
OBSOLETE

FAKE0001 Use `open Fake.IO` and `Shell.cp`

Like "cp" in a shell. Copies a single file. The source The destination

cp_r src dest
Signature: src:string -> dest:string -> unit
Attributes:
[<Obsolete("FAKE0001 Use `open Fake.IO` and `Shell.cp_r`")>]
OBSOLETE

FAKE0001 Use `open Fake.IO` and `Shell.cp_r`

Like "cp -r" in a shell. Copies a file or directory recursively.

dirStack
Signature: Stack<string>
Attributes:
[<Obsolete("FAKE0003 Please open an issue if you used this API")>]
OBSOLETE

FAKE0003 Please open an issue if you used this API

The stack of directories operated on by pushd and popd

mkdir(path)
Signature: path:string -> unit
Attributes:
[<Obsolete("FAKE0001 Use `open Fake.IO` and `Shell.mkdir`")>]
OBSOLETE

FAKE0001 Use `open Fake.IO` and `Shell.mkdir`

Creates a directory if it doesn't exist.

mv src dest
Signature: src:string -> dest:string -> unit
Attributes:
[<Obsolete("FAKE0001 Use `open Fake.IO` and `Shell.mv`")>]
OBSOLETE

FAKE0001 Use `open Fake.IO` and `Shell.mv`

Like "mv" in a shell. Moves/renames a file The source The destination

popd()
Signature: unit -> unit
Attributes:
[<Obsolete("FAKE0001 Use `open Fake.IO` and `Shell.popd`")>]
OBSOLETE

FAKE0001 Use `open Fake.IO` and `Shell.popd`

Restore the previous directory stored in the stack

pushd(path)
Signature: path:string -> unit
Attributes:
[<Obsolete("FAKE0001 Use `open Fake.IO` and `Shell.pushd`")>]
OBSOLETE

FAKE0001 Use `open Fake.IO` and `Shell.pushd`

Store the current directory in the directory stack before changing to a new one

pwd()
Signature: unit -> string
Attributes:
[<Obsolete("FAKE0001 Use `open Fake.IO` and `Shell.pwd`")>]
OBSOLETE

FAKE0001 Use `open Fake.IO` and `Shell.pwd`

Gets working directory

rm(fileName)
Signature: fileName:string -> unit
Attributes:
[<Obsolete("FAKE0001 Use `open Fake.IO` and `Shell.rm`")>]
OBSOLETE

FAKE0001 Use `open Fake.IO` and `Shell.rm`

Deletes a file if it exists

rm_rf(f)
Signature: f:string -> unit
Attributes:
[<Obsolete("FAKE0001 Use `open Fake.IO` and `Shell.rm_rf`")>]
OBSOLETE

FAKE0001 Use `open Fake.IO` and `Shell.rm_rf`

Like "rm -rf" in a shell. Removes files recursively, ignoring nonexisting files