fs

package
v0.0.0-...-d9d3431 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(source string, target string) error

func CopyDirs

func CopyDirs(sourcePath []string, sourceRoot string, targetRoot string) error

func CopyXattrs

func CopyXattrs(source string, target string) error

func GetAttrs

func GetAttrs(facePath string, out *fuse.Attr) (*fs.StableAttr, syscall.Errno)

func MovePath

func MovePath(path, sourceRoot, targetRoot string) error

Merges directory trees

func PlainPath

func PlainPath(path string) string

func WalkDepthFirst

func WalkDepthFirst(fullpath path.FullPath, fn func(path.FullPath) error) error

Iterate over every file and subdirectory, depth-first.

Types

type LSDDeletion

type LSDDeletion struct {
	// contains filtered or unexported fields
}

type LSDNode

type LSDNode struct {
	fs.Inode
}

func (*LSDNode) Create

func (n *LSDNode) Create(ctx context.Context, name string, flags uint32, mode uint32, out *fuse.EntryOut) (*fs.Inode, fs.FileHandle, uint32, syscall.Errno)

func (*LSDNode) Getattr

func (n *LSDNode) Getattr(ctx context.Context, fh fs.FileHandle, out *fuse.AttrOut) syscall.Errno

func (*LSDNode) Getxattr

func (n *LSDNode) Getxattr(ctx context.Context, attr string, dest []byte) (uint32, syscall.Errno)

func (*LSDNode) Listxattr

func (n *LSDNode) Listxattr(ctx context.Context, dest []byte) (uint32, syscall.Errno)

func (*LSDNode) Lookup

func (n *LSDNode) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)

func (*LSDNode) Mkdir

func (n *LSDNode) Mkdir(ctx context.Context, name string, mode uint32, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)

func (*LSDNode) Open

func (n *LSDNode) Open(ctx context.Context, flags uint32) (fs.FileHandle, uint32, syscall.Errno)

func (*LSDNode) Readdir

func (n *LSDNode) Readdir(ctx context.Context) (fs.DirStream, syscall.Errno)
func (n *LSDNode) Readlink(ctx context.Context) ([]byte, syscall.Errno)

func (*LSDNode) Removexattr

func (n *LSDNode) Removexattr(ctx context.Context, attr string) syscall.Errno

func (*LSDNode) Rename

func (n *LSDNode) Rename(ctx context.Context, name string, newParent fs.InodeEmbedder, newName string, flags uint32) syscall.Errno

func (*LSDNode) Rmdir

func (n *LSDNode) Rmdir(ctx context.Context, name string) syscall.Errno

func (*LSDNode) Setattr

func (n *LSDNode) Setattr(ctx context.Context, fh fs.FileHandle, in *fuse.SetAttrIn, out *fuse.AttrOut) syscall.Errno

func (*LSDNode) Setxattr

func (n *LSDNode) Setxattr(ctx context.Context, attr string, data []byte, flags uint32) syscall.Errno

func (*LSDNode) Statfs

func (n *LSDNode) Statfs(ctx context.Context, out *fuse.StatfsOut) syscall.Errno
func (n *LSDNode) Symlink(ctx context.Context, target, name string, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
func (n *LSDNode) Unlink(ctx context.Context, name string) syscall.Errno

type LSDRoot

type LSDRoot struct {
	LSDNode
	// contains filtered or unexported fields
}

func NewLSD

func NewLSD() LSDRoot

func (*LSDRoot) NewServer

func (r *LSDRoot) NewServer(mountpoint string) (*fuse.Server, error)

Jump to

Keyboard shortcuts

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