vgowatch

package
v1.1.17 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsChangeFolders

func IsChangeFolders(ext string) int

func SaveFolder

func SaveFolder(folder string, ext string)

func Start

func Start(calback func())

Types

type FilesWatch

type FilesWatch struct {
	File string
	// contains filtered or unexported fields
}

func NewFilesWatch

func NewFilesWatch(file string) (*FilesWatch, error)

func (*FilesWatch) IsChange

func (ctx *FilesWatch) IsChange() (bool, error)

type FolderWatch

type FolderWatch struct {
	Folder       string
	FilesCount   int
	FoldersCount int
}

func NewFolderWatch

func NewFolderWatch(folder string, ext string) (*FolderWatch, error)

func (*FolderWatch) GetCountFiles added in v1.1.16

func (ctx *FolderWatch) GetCountFiles(ext string) (int, error)

func (*FolderWatch) GetCountFolders added in v1.1.16

func (ctx *FolderWatch) GetCountFolders() (int, error)

func (*FolderWatch) IsChange

func (ctx *FolderWatch) IsChange(ext string) (bool, error)

Jump to

Keyboard shortcuts

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