listOrNull

expect abstract fun listOrNull(dir: Path): List<Path>?

Returns the children of the directory identified by dir. The returned list is sorted using natural ordering. If dir is a relative path, the returned elements will also be relative paths. If it is an absolute path, the returned elements will also be absolute paths.

This returns null if dir does not exist or cannot be listed. A directory cannot be listed if the current process doesn't have access to dir, or if there's a loop of symbolic links, or if any name is too long.

actual abstract fun listOrNull(dir: Path): List<Path>?
actual abstract fun listOrNull(dir: Path): List<Path>?
actual abstract fun listOrNull(dir: Path): List<Path>?
actual abstract fun listOrNull(dir: Path): List<Path>?