wshfs

package
v0.14.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	RemoteFileTransferSizeLimit = 32 * 1024 * 1024
	DefaultTimeout              = 30 * time.Second
	FileMode                    = os.FileMode(0644)
	DirMode                     = os.FileMode(0755) | os.ModeDir
	RecursiveRequiredError      = "recursive flag must be set for directory operations"
	MergeRequiredError          = "directory already exists at %q, set overwrite flag to delete the existing contents or set merge flag to merge the contents"
	OverwriteRequiredError      = "file already exists at %q, set overwrite flag to delete the existing file"
)

Variables

View Source
var RpcClient *wshutil.WshRpc

This needs to be set by whoever initializes the client, either main-server or wshcmd-connserver

View Source
var RpcClientRouteId string

Functions

func Append

func Append(ctx context.Context, data wshrpc.FileData) error

func Copy

func Delete

func GetConnectionRouteId

func GetConnectionRouteId(ctx context.Context, path string) (string, error)

func Join

func Join(ctx context.Context, path string, parts ...string) (*wshrpc.FileInfo, error)

func ListEntries

func ListEntries(ctx context.Context, path string, opts *wshrpc.FileListOpts) ([]*wshrpc.FileInfo, error)

func Mkdir

func Mkdir(ctx context.Context, path string) error

func Move

func PutFile

func PutFile(ctx context.Context, data wshrpc.FileData) error

func Read

func Read(ctx context.Context, data wshrpc.FileData) (*wshrpc.FileData, error)

func Stat

func Stat(ctx context.Context, path string) (*wshrpc.FileInfo, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL