mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-18 13:49:59 +01:00
9 lines
253 B
Plaintext
9 lines
253 B
Plaintext
import "io" for Directory
|
|
|
|
var entries = Directory.list("test/io/directory/dir")
|
|
|
|
// Ignore OS-specific dot files like ".DS_Store".
|
|
entries = entries.where {|entry| !entry.startsWith(".") }.toList
|
|
|
|
System.print(entries) // expect: [a.txt, b.txt, c.txt]
|