files

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package files holds file mutations shared by the SSH and HTTP frontends.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateContent

func UpdateContent(ctx context.Context, database *db.DB, cfg *config.Config, file *snips.File, content []byte, extension string) error

UpdateContent replaces a file's content and persists it, re-detecting the file type (optionally hinted by extension) and recording a revision diff for non-binary files. Revision bookkeeping failures are logged, not fatal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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