github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/kbfs/libdokan/error_file.go (about)

     1  // Copyright 2016 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 libdokan
     6  
     7  import (
     8  	"github.com/keybase/client/go/kbfs/libfs"
     9  )
    10  
    11  // NewErrorFile returns a special read file that contains a text
    12  // representation of the last few KBFS errors.
    13  func NewErrorFile(fs *FS) *SpecialReadFile {
    14  	return &SpecialReadFile{read: libfs.GetEncodedErrors(fs.config), fs: fs}
    15  }