github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/kbfs/libgit/lfs_file_info.go (about) 1 // Copyright 2019 Keybase Inc. All rights reserved. 2 // Use of this source code is governed by a BSD 3 // license that can be found in the LICENSE file. 4 5 package libgit 6 7 import ( 8 "os" 9 "time" 10 ) 11 12 type lfsFileInfo struct { 13 name string 14 oid string 15 size int64 16 mtime time.Time 17 } 18 19 var _ os.FileInfo = (*lfsFileInfo)(nil) 20 21 func (lfi *lfsFileInfo) Name() string { 22 return lfi.name 23 } 24 25 func (lfi *lfsFileInfo) Size() int64 { 26 return lfi.size 27 } 28 29 func (lfi *lfsFileInfo) Mode() os.FileMode { 30 return 0600 31 } 32 33 func (lfi *lfsFileInfo) ModTime() time.Time { 34 return lfi.mtime 35 } 36 37 func (lfi *lfsFileInfo) IsDir() bool { 38 return false 39 } 40 41 func (lfi *lfsFileInfo) Sys() interface{} { 42 return nil 43 }