Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.09 KB

File metadata and controls

29 lines (19 loc) · 1.09 KB

subkt / myaa.subkt.tasks / org.gradle.api.Project / glob

glob

fun Project.glob(s: String): List<String> (source)

Simple subset of Bash globs. Supports basic brace expansion using expressions like {01..10} and {a,b,c}, as well as wildcards.

glob("{a,b,c}")
// Output: [a, b, c]

glob("test{a,b,c}")
// Output: [testa, testb, testc]

glob("{1..5}")
// Output: [1, 2, 3, 4, 5]

glob("{01..05}")
// Output: [01, 02, 03, 04, 05]

glob("test{01..05}hello")
// Output: [test01hello, test02hello, test03hello, test04hello, test05hello]

glob("{01,02}/*_qc.ass")
// Output: [01/eizouken_01_qc.ass, 02/eizouken_02_qc.ass]