Hello, just wanted to know how the FileSystemRouter reload() methode works. I understand, that the methode is going to re-scan the folder. But my question is more on understanding what is going on under the hood. Does relaod() compare exisiting file listing and append new added files to the folder or override listing completely?
#router.reload();
1 messages · Page 1 of 1 (latest)
I assume this is the code for that. It seems it creates a new router and replaces the previous one.
filesystem_router.zig — (L214-L214)
pub fn reload(this: *FileSystemRouter, globalThis: *JSC.JSGlobalObject, callframe: *JSC.CallFrame) JSValue {