Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • a32menon/notes-app
1 result
Show changes
Commits on Source (2)
......@@ -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