blob: 592bde5384e88e0d7cfce114a6516be33d47dd11 [file] [log] [blame]
// Copyright 2018 The Fuchsia 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 pkgfs
import (
"thinfs/fs"
"syscall/zx/io"
)
type dirDirEnt string
func (d dirDirEnt) GetType() fs.FileType {
return fs.FileTypeDirectory
}
func (d dirDirEnt) GetIno() uint64 {
return io.InoUnknown
}
func (d dirDirEnt) GetName() string {
return string(d)
}
type fileDirEnt string
func (d fileDirEnt) GetType() fs.FileType {
return fs.FileTypeRegularFile
}
func (d fileDirEnt) GetIno() uint64 {
return io.InoUnknown
}
func (d fileDirEnt) GetName() string {
return string(d)
}