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
pathAbsolutePathThe path of the directory.
dependsOnFSharpOption<IEnumerable<Resource>>The resources this resource depends on.
Returns
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
pathAbsolutePathThe path of the file.
dependsOnFSharpOption<IEnumerable<Resource>>The resources this resource depends on, e.g. the ones that create the file.
Returns
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
sourceFileSourceThe source of the file content.
targetAbsolutePathstringThe path of the target file.
dependsOnFSharpOption<IEnumerable<Resource>>The resources this resource depends on.