From 15fa9b0aac43aa24c235ad8389edce032ea093b8 Mon Sep 17 00:00:00 2001 From: Tom Chauveau Date: Fri, 17 Dec 2021 20:23:05 +0100 Subject: [PATCH] Add #Mkdir to engine fs definition Signed-off-by: Vasek - Tom C --- stdlib/europa/dagger/engine/fs.cue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/stdlib/europa/dagger/engine/fs.cue b/stdlib/europa/dagger/engine/fs.cue index c564fe95..97bc24d2 100644 --- a/stdlib/europa/dagger/engine/fs.cue +++ b/stdlib/europa/dagger/engine/fs.cue @@ -1,6 +1,23 @@ package engine // Read a file from a filesystem tree +#Mkdir: { + $dagger: task: _name: "Mkdir" + + input: #FS + + // Path of the directory + path: string + + // Permission to set + mode: *0o755 | int + + // Create parents' directory if they do not exist + parents: *true | false + + output: #FS +} + #ReadFile: { $dagger: task: _name: "ReadFile"