Remove path from fsentry metadata, make vfs and webdav work again with fixes

This commit is contained in:
timurgordon
2025-03-12 02:16:40 +01:00
parent f1991d89b3
commit ff430c2e4d
48 changed files with 1424 additions and 1350 deletions

View File

@@ -0,0 +1,22 @@
module webdav
import net.http
import freeflowuniverse.herolib.core.pathlib
import time
import freeflowuniverse.herolib.data.ourdb
import encoding.base64
import rand
import os
import freeflowuniverse.herolib.vfs.vfs_db
const testdata_path := os.join_path(os.dir(@FILE), 'testdata')
const database_path := os.join_path(testdata_path, 'database')
fn test_new_server() {
mut metadata_db := ourdb.new(path:os.join_path(database_path, 'metadata'))!
mut data_db := ourdb.new(path:os.join_path(database_path, 'data'))!
mut vfs := vfs_db.new(mut metadata_db, mut data_db)!
server := new_server(vfs: vfs, user_db: {
'admin': '123'
})!
}