github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/kbfs/libdokan/alias.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/dokan"
     9  	"golang.org/x/net/context"
    10  )
    11  
    12  // Alias is a top-level folder accessed through its non-canonical name.
    13  type Alias struct {
    14  	// canonical name for this folder
    15  	canon string
    16  	emptyFile
    17  }
    18  
    19  // GetFileInformation for dokan.
    20  func (s *Alias) GetFileInformation(context.Context, *dokan.FileInfo) (a *dokan.Stat, err error) {
    21  	return defaultSymlinkDirInformation()
    22  }