listDirectoryEntries

kotlin-stdlib / kotlin.io.path / java.nio.file.Path / listDirectoryEntries
 

Platform and version requirements: JVM (1.5), JRE7 (1.5) 

fun Path.listDirectoryEntries(glob: String = "*"): List<Path> 
 Returns a list of the entries in this directory optionally filtered by matching against the specified glob pattern. Parameters  glob - the globbing pattern. The syntax is specified by the FileSystem.getPathMatcher method. Exceptions  java.util.regex.PatternSyntaxException - if the glob pattern is invalid.  NotDirectoryException - If this path does not refer to a directory.  IOException - If an I/O error occurs. See Also 
Files.newDirectoryStream 


    
{'path': 'public/docs/kotlin~1.7/api/latest/jvm/stdlib/kotlin.io.path/java.nio.file.-path/list-directory-entries.html', 'source': 'DevDocs.IO'}