Documentation
¶
Index ¶
- Constants
- func IsIgnored(patterns IgnorePattern, path string) bool
- func ParseDropboxInfoPaths() ([]string, error)
- type DropboxIgnorer
- func (i *DropboxIgnorer) DropboxPath() string
- func (i *DropboxIgnorer) IgnoreFiles() *util.SortedStringSet
- func (i *DropboxIgnorer) IgnoredPathsSet() *util.SortedStringSet
- func (i *DropboxIgnorer) IsInsideIgnoreDir(path string) bool
- func (i *DropboxIgnorer) ListenForEvents()
- func (i *DropboxIgnorer) Logger() *log.Logger
- func (i *DropboxIgnorer) SetIgnoreFlag(path string) error
- func (i *DropboxIgnorer) ShouldPathGetIgnored(path string) bool
- func (i *DropboxIgnorer) TryRun() bool
- type DropboxInfo
- type DropboxInfoEntry
- type IgnorePattern
Constants ¶
View Source
const DropboxIgnoreFilename = ".dropboxignore"
Variables ¶
This section is empty.
Functions ¶
func IsIgnored ¶
func IsIgnored(patterns IgnorePattern, path string) bool
func ParseDropboxInfoPaths ¶
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 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)
Click to show internal directories.
Click to hide internal directories.