From acc7ed22cbb7359d58205152f47548ae0e50e9a4 Mon Sep 17 00:00:00 2001 From: s0nik42 Date: Fri, 4 Oct 2024 09:24:19 +0200 Subject: [PATCH] fix: Support for HAMT-Sharded dag-pb Directory --- integrations/kuri/ribsplugin/mfsdav.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/kuri/ribsplugin/mfsdav.go b/integrations/kuri/ribsplugin/mfsdav.go index e8dbf86..0824e22 100644 --- a/integrations/kuri/ribsplugin/mfsdav.go +++ b/integrations/kuri/ribsplugin/mfsdav.go @@ -454,7 +454,7 @@ func (m *mfsDavFs) Stat(ctx context.Context, name string) (os.FileInfo, error) { }, nil*/ mode := os.FileMode(0644) - if d.Type() == ft.TDirectory { + if d.Type() == ft.TDirectory || d.Type() == ft.THAMTShard { mode = os.FileMode(0755) | os.ModeDir } @@ -463,7 +463,7 @@ func (m *mfsDavFs) Stat(ctx context.Context, name string) (os.FileInfo, error) { size: int64(d.FileSize()), // nd.Size? mode: mode, modTime: time.Unix(0, 0), - isDir: d.Type() == ft.TDirectory, + isDir: d.Type() == ft.TDirectory || d.Type() == ft.THAMTShard, }, nil case *dag.RawNode: return &basicFileInfos{