Skip to content

Commit

Permalink
Merge pull request #61 from s0nik42/main
Browse files Browse the repository at this point in the history
fix: Support for HAMT-Sharded dag-pb Directory
  • Loading branch information
magik6k authored Oct 4, 2024
2 parents 6f6e45c + acc7ed2 commit 74a6e0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integrations/kuri/ribsplugin/mfsdav.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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{
Expand Down

0 comments on commit 74a6e0d

Please sign in to comment.