forked from FakeBuild/Xake
-
Notifications
You must be signed in to change notification settings - Fork 0
Tasks | Rm
Oleg edited this page May 14, 2017
·
4 revisions
Requires version 0.10.x
Deletes individual files, folders and filesets.
Also available as
deltask.
Del task accepts settings of the RmArgs type:
type RmArgs = {
dir: string
file: string
files: Fileset
verbose: bool
}Command is available via both common and simplified syntax:
open Xake.Tasks
...
do! Rm {RmArgs.Default with file = "samplefile"}
/// or simplified syntax:
do! rm {file "samplefile"}do! rm {file "samplefile"}The following code deletes file by mask:
do! rm {file "temp*.txt"}The following code will delete folder with all its contents and subfolders:
do! rm {dir "a"}do! rm {
files (fileset {
includes "samplefile*"
})
}verbose settings instructs command to output each file name while removing file of directory
do! rm {dir "a"; verbose}