2017-10-20 16:52:55 +02:00
|
|
|
// Copyright (C) 2017 The Syncthing Authors.
|
|
|
|
//
|
|
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
// You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
// +build dragonfly freebsd netbsd openbsd
|
|
|
|
|
|
|
|
package fs
|
|
|
|
|
2018-03-14 14:48:22 +01:00
|
|
|
import "github.com/syncthing/notify"
|
2017-10-20 16:52:55 +02:00
|
|
|
|
|
|
|
const (
|
2019-07-23 14:11:15 +02:00
|
|
|
// Platform independent notify.Create is required, as kqueue does not have
|
|
|
|
// any event signalling file creation, but notify does generate those internally.
|
2021-05-02 16:45:44 +02:00
|
|
|
// NoteAttrib is not only required for permissions, but also mod. time changes
|
|
|
|
subEventMask = notify.NoteDelete | notify.NoteWrite | notify.NoteRename | notify.Create | notify.NoteAttrib | notify.NoteExtend
|
|
|
|
permEventMask = 0
|
2017-10-20 16:52:55 +02:00
|
|
|
rmEventMask = notify.NoteDelete | notify.NoteRename
|
|
|
|
)
|