connector

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Separator = string(os.PathSeparator)

Functions

This section is empty.

Types

type FSPath

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

func NewFSPath

func NewFSPath(p string) *FSPath

func (*FSPath) ExcludePath

func (path *FSPath) ExcludePath(excPath Path) Path

func (*FSPath) Exists

func (path *FSPath) Exists() bool

func (*FSPath) Info

func (path *FSPath) Info() *FileInfo

func (FSPath) IsDir

func (path FSPath) IsDir() bool

func (FSPath) IsVirtual

func (path FSPath) IsVirtual() bool

func (*FSPath) Name

func (path *FSPath) Name() string

func (*FSPath) ParentPath

func (path *FSPath) ParentPath() Path

func (*FSPath) String

func (path *FSPath) String() string

type FileInfo

type FileInfo struct {
	IsDir      bool
	Size       int64
	CreatedAt  int64
	Permission string
}

type Params

type Params struct {
	From Path
	To   Path
}

type Path

type Path interface {
	IsVirtual() bool
	IsDir() bool
	Exists() bool
	Name() string
	String() string
	ParentPath() Path
	ExcludePath(p Path) Path
	Info() *FileInfo
}

type VirtualPath

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

func NewVirtualPath

func NewVirtualPath(p string, isDir bool) *VirtualPath

func (*VirtualPath) ExcludePath

func (path *VirtualPath) ExcludePath(excPath Path) Path

func (*VirtualPath) Exists

func (path *VirtualPath) Exists() bool

func (VirtualPath) Info

func (path VirtualPath) Info() *FileInfo

func (VirtualPath) IsDir

func (path VirtualPath) IsDir() bool

func (VirtualPath) IsVirtual

func (path VirtualPath) IsVirtual() bool

func (*VirtualPath) Name

func (path *VirtualPath) Name() string

func (*VirtualPath) ParentPath

func (path *VirtualPath) ParentPath() Path

func (*VirtualPath) String

func (path *VirtualPath) String() string

Jump to

Keyboard shortcuts

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