| // 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. |
| |
| // +build !build_with_native_toolchain |
| |
| package pkgfs |
| |
| import ( |
| "go.fuchsia.dev/fuchsia/src/lib/thinfs/fs" |
| |
| "fidl/fuchsia/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) |
| } |