Skip to content

FS.FileDialog

Name - Description Default Type
<input>
<output> String[String]
Filters To filter files based on extensions. None [String]&[String]
CurrentDir Set the current directory None String&String
Multiple To select multiple files instead of just one. false Bool
Folder To select a folder instead of a file. false Bool&Bool

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
; 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")

 

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
; 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")