Skip to content

Commit 56ddd49

Browse files
committed
Hide listFiles as it's no more preferred by overload resolution over synthetic SAM invocations.
#KT-10652 Fixed
1 parent b185316 commit 56ddd49

File tree

1 file changed

+1
-0
lines changed
  • libraries/stdlib/src/kotlin/io/files

1 file changed

+1
-0
lines changed

libraries/stdlib/src/kotlin/io/files/Utils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ public fun File.deleteRecursively(): Boolean = walkBottomUp().fold(true, { res,
373373
* Returns an array of files and directories in the directory that match the specified [filter]
374374
* or `null` if this file does not denote a directory.
375375
*/
376+
@Deprecated("Provided for binary compatiblity", level = DeprecationLevel.HIDDEN)
376377
public fun File.listFiles(filter: (file: File) -> Boolean): Array<File>? = listFiles(FileFilter(filter))
377378

378379
/**

0 commit comments

Comments
 (0)