diff options
Diffstat (limited to 'src/main/kotlin')
-rw-r--r-- | src/main/kotlin/App.kt | 7 |
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) |