manager

package
v1.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExecCommand = exec.Command

ExecCommand is exec.Command by default, but can be overridden in tests.

Functions

func AppendYearLocal

func AppendYearLocal(noYearPath string) (string, error)

func CleanupOld

func CleanupOld(prefix, rmDir string, retentionDays int) error

func DefaultRmDir

func DefaultRmDir() string

func FoldersHandler added in v1.0.0

func FoldersHandler(c *gin.Context)

FoldersHandler writes a JSON {"folders": ["/path", ...]}.

func ListFolders added in v1.0.0

func ListFolders() ([]string, error)

ListFolders returns a slice of all folder paths on the reMarkable device. Paths are returned with a leading slash, e.g. "/Books/Fiction".

func Logf

func Logf(format string, v ...interface{})

func RenameAndUpload

func RenameAndUpload(path, prefix, rmDir string) (string, error)

/ RenameAndUpload renames locally, uploads via rmapi, and returns the name on the device.

func RenameLocal

func RenameLocal(path, prefix string) (string, error)

func RenameLocalNoYear

func RenameLocalNoYear(src, prefix string) (string, error)

func SanitizePrefix added in v1.0.0

func SanitizePrefix(p string) (string, error)

SanitizePrefix ensures prefix is a simple directory name with no path separators, leading slashes, or parent directory components.

func SimpleUpload

func SimpleUpload(path, rmDir string) (string, error)

SimpleUpload calls `rmapi put` and returns the uploaded filename or a detailed error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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