aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin')
-rw-r--r--src/main/kotlin/App.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/kotlin/App.kt b/src/main/kotlin/App.kt
index 4572cf1..2789530 100644
--- a/src/main/kotlin/App.kt
+++ b/src/main/kotlin/App.kt
@@ -218,6 +218,13 @@ fun upload(ctx: Context) {
databaseController.addFile(path, getVerifiedUserId(ctx))
}
}
+/*
+fun indexAllFiles(ctx: Context) {
+ Files.list(Paths.get("$fileHome/${getVerifiedUserId(ctx)}").forEach {
+ // TODO: Add file indexing function
+ }
+}
+*/
/**
* Checks whether the file is binary or human-readable (text)