fix: ignore / and . not existing

This commit is contained in:
Derrick Hammer 2024-03-03 07:18:03 -05:00
parent 201c9b992f
commit 9d378f4197
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ func (w webAppFs) Open(name string) (fs.File, error) {
item, ok := webApp.Paths.Get(name)
if !ok {
if !ok && name != "/" && name != "." {
return nil, fs.ErrNotExist
}
return w.s5.newFile(FileParams{