fshook

package module
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2025 License: BSD-3-Clause Imports: 4 Imported by: 1

README

fshook

Use a userspace filesystem (FUSE) to catch the modification of a file and run a program, when a certain pattern of files is changed.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MountPoint   string
	OnWrite      map[string][]Matcher
	ScaffoldDirs []string
}

func (*Config) GetProgramForMoveOfTemp added in v0.0.2

func (c *Config) GetProgramForMoveOfTemp(filePath string, renameOldName string) []*Program

func (*Config) GetProgramForReleaseAfterWrite added in v0.0.2

func (c *Config) GetProgramForReleaseAfterWrite(filePath string) []*Program

func (*Config) LocalPath

func (c *Config) LocalPath(filePath string) (path.Local, error)

func (*Config) MkScaffoldDirs

func (c *Config) MkScaffoldDirs() error

type Matcher

type Matcher struct {
	RegEx               string
	Program             Program
	OnReleaseAfterWrite bool
	OnMoveFromTemp      bool
}

type Program

type Program struct {
	Command string
	Args    []string
}

Directories

Path Synopsis
winfuse module

Jump to

Keyboard shortcuts

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