internal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Path string

	Title       string
	Attachments []string
	// contains filtered or unexported fields
}

File is an abstraction representing a Markdown file All fields are populated by NewFile constructor.

func NewFile

func NewFile(fs afero.Fs, path string) (*File, error)

NewFile creates File structure from the file in the path.

func (*File) Move

func (f *File) Move(dest string) error

Move file to a new destination.

func (*File) MoveToDir

func (f *File) MoveToDir(dirName string) error

MoveToDir moves file to a new directory.

Jump to

Keyboard shortcuts

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