Create directory
- 18 May 2022
- 1 Minute to read
-
DarkLight
-
PDF
Create directory
- Updated on 18 May 2022
- 1 Minute to read
-
DarkLight
-
PDF
Creates a new directory at the target path, including any parent directories that are missing (like mkdir -p
).
The first output is triggered if the directory is successfully created, or if it already exists.
Input arguments
Label | Key | Type | Required? | Default | Description |
---|---|---|---|---|---|
New directory path | path |
String(local-filesystem-reference) | Yes | – | Absolute local filesystem path to the new directory. |
Output arguments
Number of outputs: 2
Label | Key | Type | Description |
---|---|---|---|
Directory | directory
|
Object | Object representing the created directory in the local filesystem |
|
directory.path
|
String | Absolute local filesystem path representing the directory location on the device. |
|
directory.name
|
String | Name of the directory in the local filesystem, if applicable. Note that the directory name is included in the **Local path** property. |
|
directory.files
|
Array | List of objects representing the files in the directory. |
|
directory.directories
|
Array | List of objects describing subdirectories of the directory. |
|
directory.totalSize
|
Number | Total size of the directory, in bytes. |
Events
No events.
Errors
Label | Code | Description |
---|---|---|
Unkown error | unknown |
Thrown if an unknown error occured while creating the directory. |
Was this article helpful?