Skip to content

FS.FileDialog

Name Mandatory Description Default Type
⬅️ Input The input of the shard, if any None
Output ➡️ The resulting output of the shard String[String]
Filters No To filter files based on extensions. none None[[String]]Var([[String]])
FilterNames No For each filter, gives the name to show of the filter. none None[String]Var([String])
CurrentDir No Set the current directory none StringVar(String)None
Multiple No To select multiple files instead of just one. false Bool
Folder No To select a folder instead of a file. false BoolVar(Bool)None

Creates a file dialog to open files

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; pick any file
FS.FileDialog | Log("file path")

; pick any file from the parent directory
FS.FileDialog(CurrentDir: "..") | Log("file path")

; pick only .edn and .log file
FS.FileDialog(Filters: ["edn" "log"]) | Log("file path")

; pick any folder
FS.FileDialog(Folder: true) | Log("folder path")

; pick any files
FS.FileDialog(Multiple: true) | Log("file paths")

; pick any files from the parent directory
FS.FileDialog(CurrentDir: ".." Multiple: true) | Log("file paths")

; pick only .edn and .log files
FS.FileDialog(Filters: ["edn" "log"] Multiple: true) | Log("file paths")

; pick any folders
FS.FileDialog(Folder: true Multiple: true) | Log("folder paths")