Versions in this module Expand all Collapse all v0 v0.1.1 Mar 13, 2024 v0.1.0 Dec 1, 2023 Changes in this version + type FileWatcher struct + func (f *FileWatcher) GetEvent() *WatcherEvent + func (f *FileWatcher) GetNotificationChannel() <-chan struct{} + func (f *FileWatcher) Stop() + type Filesystem interface + AreFilesDifferent func(firstFilePath, secondFilePath string) (bool, error) + ClearDir func(filePath string) error + Copy func(fromPath, toPath string) error + DeleteFile func(filePath string) error + DoesExist func(path string) bool + Extract func(tarball, toDir string) error + Hardlink func(filePath, hardlinkPath string) error + ListFileNamesInDir func(dirPath string) ([]string, error) + MoveFile func(fromPath, toPath string) error + NewFileWatcher func(watchedFile string, watchedOps fsnotify.Op) (Watcher, error) + func New(logger *slog.Logger) Filesystem + type Watcher interface + GetEvent func() *WatcherEvent + GetNotificationChannel func() <-chan struct{} + Stop func() + type WatcherEvent struct + Error error + Operation fsnotify.Op