Skip to content
Snippets Groups Projects
Commit c060c7f3 authored by Inseo Kim's avatar Inseo Kim
Browse files

Gradle Build error for console has been fixed.

parent 39308261
No related branches found
No related tags found
No related merge requests found
......@@ -13,5 +13,5 @@ dependencies {
application {
// Define the main class for the application.
mainClass = 'notes.multi.console.Console.kt'
mainClass = 'notes.multi.console.ConsoleKt'
}
package notes.multi.utilities
import java.io.File
import java.io.FileInputStream
import java.util.*
import kotlin.io.path.exists
class Filemanager(val dir: String) {
private val directory = File(dir)
fun files() : MutableList<File> {
val retfiles = mutableListOf<File>()
for (f in directory.listFiles()!!) {
if (f.extension == "txt" || f.extension == "md") {
retfiles.add(f)
}
}
return retfiles
}
fun createfile() {
//TODO: Create File
}
fun deletefile(path:String) {
//TODO: DELETE FILE
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment