Table of Contents

Class Files

Namespace
Fabricator.Resources
Assembly
Fabricator.Resources.dll
[CompilationMapping(SourceConstructFlags.ObjectType)]
public class Files
Inheritance
Files
Inherited Members

Methods

createDirectory(AbsolutePath, FSharpOption<IEnumerable<Resource>>?)

Creates a resource making sure the directory exists.

public static Resource createDirectory(AbsolutePath path, FSharpOption<IEnumerable<Resource>>? dependsOn)

Parameters

path AbsolutePath

The path of the directory.

dependsOn FSharpOption<IEnumerable<Resource>>

The resources this resource depends on.

Returns

Resource

ensureFileExists(AbsolutePath, FSharpOption<IEnumerable<Resource>>?)

Creates a resource asserting that the file exists. It is never considered already applied, and its application fails if the file does not exist.

public static Resource ensureFileExists(AbsolutePath path, FSharpOption<IEnumerable<Resource>>? dependsOn)

Parameters

path AbsolutePath

The path of the file.

dependsOn FSharpOption<IEnumerable<Resource>>

The resources this resource depends on, e.g. the ones that create the file.

Returns

Resource

file(FileSource, string, FSharpOption<IEnumerable<Resource>>?)

Creates a resource making sure the target file has the content from the source.

public static Resource file(FileSource source, string targetAbsolutePath, FSharpOption<IEnumerable<Resource>>? dependsOn)

Parameters

source FileSource

The source of the file content.

targetAbsolutePath string

The path of the target file.

dependsOn FSharpOption<IEnumerable<Resource>>

The resources this resource depends on.

Returns

Resource