filesys

package
v0.0.0-...-53a3c30 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyAll

func CopyAll(src, dst string) (err error)

CopyAll copies all files in the given path to the new directory.

func CopyCmd

func CopyCmd(paths []string, dst string) tea.Cmd

func CopyPaths

func CopyPaths(paths []string, dst string) error

func DeleteCmd

func DeleteCmd(paths []string) tea.Cmd

func DeletePaths

func DeletePaths(paths []string) error

func LoadChildCmd

func LoadChildCmd(reqID int, childPath string) tea.Cmd

func LoadDirCmd

func LoadDirCmd(reqID int, targetPath, selectName string) tea.Cmd

func MoveCmd

func MoveCmd(paths []string, dst string) tea.Cmd

func MovePaths

func MovePaths(paths []string, dst string) error

Types

type ChildLoadedMsg

type ChildLoadedMsg struct {
	ReqID int
	Dir   Dir
	Err   error
}

type Dir

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

func NewDir

func NewDir(path string) (Dir, error)

func (Dir) Counts

func (d Dir) Counts() (files, folders int)

func (Dir) Entries

func (d Dir) Entries() []DirEntry

func (Dir) Path

func (d Dir) Path() string

func (Dir) RealSize

func (d Dir) RealSize(ctx context.Context) (int64, error)

type DirEntry

type DirEntry struct {
	fs.DirEntry
	// contains filtered or unexported fields
}

func (DirEntry) IsHidden

func (e DirEntry) IsHidden() bool

func (DirEntry) Path

func (e DirEntry) Path() string

Path returns the full path to the entry

func (e DirEntry) ResolveSymlink() (DirEntry, error)

type DirLoadedMsg

type DirLoadedMsg struct {
	ReqID      int
	Dir        Dir
	ParentDir  Dir
	SelectName string
}

type FilesCopiedMsg

type FilesCopiedMsg struct{ Paths []string }

type FilesDeletedMsg

type FilesDeletedMsg struct{ Paths []string }

type FilesMovedMsg

type FilesMovedMsg struct{ Paths []string }

type Selection

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

Selection tracks selected file paths for operations and implements the filelist.SelChecker interface.

func NewSelection

func NewSelection() *Selection

func (*Selection) Clear

func (s *Selection) Clear()

func (*Selection) Count

func (s *Selection) Count() int

func (*Selection) Deselect

func (s *Selection) Deselect(path string)

func (*Selection) IsSelected

func (s *Selection) IsSelected(path string) bool

func (*Selection) Paths

func (s *Selection) Paths() []string

func (*Selection) Select

func (s *Selection) Select(path string)

func (*Selection) Toggle

func (s *Selection) Toggle(path string) bool

Jump to

Keyboard shortcuts

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