Europa: engine.#Mkdir

Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
Solomon Hykes 2021-12-15 00:38:01 +00:00 committed by Solomon Hykes
parent e8843b918e
commit 4b2f0f9a1c
2 changed files with 29 additions and 0 deletions

View File

@ -132,6 +132,18 @@ _No input._
_No output._
## engine.#Mkdir
Create a directory
### engine.#Mkdir Inputs
_No input._
### engine.#Mkdir Outputs
_No output._
## engine.#Mount
A transient filesystem mount.

View File

@ -31,6 +31,23 @@ package engine
output: #FS
}
// Create a directory
#Mkdir: {
_mkdir: {}
input: #FS
// Path of the directory
path: string
// FIXME: this is not very dev friendly, as Cue does not support octal notation.
// What is a better option?
mode: int
// Create parent directories as needed?
parents: *true | false
output: #FS
}
#Copy: {
_copy: {}