Glob Glob for Swift 5. Usage let files = Glob(pattern: "./**/*.swift") for file in files { print(file) } Credits Adapted from efirestone.