mirror of
https://github.com/hanzoai/go-fuse.git
synced 2026-10-30 14:46:18 +00:00
This is more likely to be correct on Darwin/FreeBSD. Change-Id: Id0000000025ed0dc17034a63b38ff5effa4b8402
21 lines
383 B
Go
21 lines
383 B
Go
// Copyright 2024 the Go-FUSE Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package fuse
|
|
|
|
type dirent struct {
|
|
Ino uint64
|
|
Off int64
|
|
Reclen uint16
|
|
Type uint8
|
|
Pad0 uint8
|
|
Namlen uint16
|
|
Pad1 uint16
|
|
Name [1]int8
|
|
}
|
|
|
|
func (de *dirent) nameLength() int {
|
|
return int(de.Namlen)
|
|
}
|