handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileHandler

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

func NewFileHandler

func NewFileHandler(vaultDir string) *FileHandler

func (*FileHandler) Archive

func (h *FileHandler) Archive(path string) error

Archive moves a note file to the archive subdirectory.

func (*FileHandler) GetSubdirectories

func (h *FileHandler) GetSubdirectories(directory, excludeDir string) []string

func (*FileHandler) Trash

func (h *FileHandler) Trash(path string) error

Trash moves a note file to the trash subdirectory.

func (*FileHandler) Unarchive

func (h *FileHandler) Unarchive(path string) error

Unarchive moves a note file from the archive subdirectory to its original location.

func (*FileHandler) Untrash

func (h *FileHandler) Untrash(path string) error

Untrash moves a note file from the trash subdirectory to its original location.

func (*FileHandler) WalkFiles

func (h *FileHandler) WalkFiles(
	excludeDirs []string,
	excludeFiles []string,
	modeFlag string,
) ([]string, error)

Jump to

Keyboard shortcuts

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