+1
-1
@@ -53,7 +53,7 @@ fun getDirectoryString(dir: File, interestingPaths: List<String>): String {
|
|||||||
val listFiles = dir.listFiles()
|
val listFiles = dir.listFiles()
|
||||||
assertNotNull(listFiles)
|
assertNotNull(listFiles)
|
||||||
|
|
||||||
val children = listFiles!!.toList().sortedBy { it.getName() }.sortedBy { it.isDirectory() }
|
val children = listFiles!!.sortedWith(compareBy ({ it.directory }, { it.name } ))
|
||||||
for (child in children) {
|
for (child in children) {
|
||||||
if (child.isDirectory()) {
|
if (child.isDirectory()) {
|
||||||
p.println(child.name)
|
p.println(child.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user