Documentation ¶
Index ¶
- type FileHandler
- func (h *FileHandler) Archive(path string) error
- func (h *FileHandler) GetSubdirectories(directory, excludeDir string) []string
- func (h *FileHandler) Trash(path string) error
- func (h *FileHandler) Unarchive(path string) error
- func (h *FileHandler) Untrash(path string) error
- func (h *FileHandler) WalkFiles(excludeDirs []string, excludeFiles []string, modeFlag string) ([]string, error)
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.
Click to show internal directories.
Click to hide internal directories.