Documentation ¶
Index ¶
Constants ¶
View Source
const ( WindowsTempPrefix = "~syncthing~" UnixTempPrefix = ".syncthing." )
Variables ¶
View Source
var TempPrefix string
Functions ¶
func IsInternal ¶ added in v0.14.14
IsInternal returns true if the file, as a path relative to the folder root, represents an internal file that should always be ignored. The file path must be clean (i.e., in canonical shortest form).
func IsTemporary ¶ added in v0.14.20
IsTemporary is true if the file name has the temporary prefix. Regardless of the normally used prefix, the standard Windows and Unix temp prefixes are always recognized as temp files.
Types ¶
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
func (*Matcher) ShouldIgnore ¶ added in v0.14.20
ShouldIgnore returns true when a file is temporary, internal or ignored
Click to show internal directories.
Click to hide internal directories.