dropboxignorer

package
v2.0.1-0...-8a186e3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const DropboxIgnoreFilename = ".dropboxignore"

Variables

This section is empty.

Functions

func IsIgnored

func IsIgnored(patterns IgnorePattern, path string) bool

func ParseDropboxInfoPaths

func ParseDropboxInfoPaths() ([]string, error)

Types

type DropboxIgnorer

type DropboxIgnorer struct {
	// contains filtered or unexported fields
}

func NewDropboxIgnorer

func NewDropboxIgnorer(dropboxPath string, tryRun bool, logger *log.Logger, ctx context.Context, wg *sync.WaitGroup, ignoredPathsSet *util.SortedStringSet, ignoreFiles *util.SortedStringSet) (*DropboxIgnorer, error)

func (*DropboxIgnorer) DropboxPath

func (i *DropboxIgnorer) DropboxPath() string

func (*DropboxIgnorer) IgnoreFiles

func (i *DropboxIgnorer) IgnoreFiles() *util.SortedStringSet

func (*DropboxIgnorer) IgnoredPathsSet

func (i *DropboxIgnorer) IgnoredPathsSet() *util.SortedStringSet

func (*DropboxIgnorer) IsInsideIgnoreDir

func (i *DropboxIgnorer) IsInsideIgnoreDir(path string) bool

func (*DropboxIgnorer) ListenForEvents

func (i *DropboxIgnorer) ListenForEvents()

func (*DropboxIgnorer) Logger

func (i *DropboxIgnorer) Logger() *log.Logger

func (*DropboxIgnorer) SetIgnoreFlag

func (i *DropboxIgnorer) SetIgnoreFlag(path string) error

func (*DropboxIgnorer) ShouldPathGetIgnored

func (i *DropboxIgnorer) ShouldPathGetIgnored(path string) bool

func (*DropboxIgnorer) TryRun

func (i *DropboxIgnorer) TryRun() bool

type DropboxInfo

type DropboxInfo map[string]DropboxInfoEntry

may be be personal os business, but make a map for simplicity

type DropboxInfoEntry

type DropboxInfoEntry struct {
	Path             string `json:"path"`
	Host             uint64 `json:"host"`
	IsTeam           bool   `json:"is_team"`
	SubscriptionType string `json:"subscription_type"`
}

type IgnorePattern

type IgnorePattern []string

func ParseIgnoreFile

func ParseIgnoreFile(filename string) (IgnorePattern, error)

func ParseIgnoreFileFromBytes

func ParseIgnoreFileFromBytes(filename string, fileBytes []byte) (IgnorePattern, error)

ignore rules: https://git-scm.com/docs/gitignore

func ParseIgnoreFilesFromRoot

func ParseIgnoreFilesFromRoot(dir string, ignoreFileName string) (IgnorePattern, error)

Jump to

Keyboard shortcuts

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