gitbutler/crates/gitbutler-watcher/tests/fixtures/add_create_dir_event_twice.hjson

21 lines
635 B
Plaintext
Raw Normal View History

// https://github.com/spacedriveapp/spacedrive/blob/90a350946914be7f91ba692887ca03db659d530a/core/src/location/manager/watcher/macos.rs
//
// This is a MacOS specific event that happens when a folder is created trough Finder.
// It creates a folder but 2 events are triggered in FSEvents.
{
state: {}
events: [
{ kind: "create-folder", paths: ["/watch/dir"] }
{ kind: "create-folder", paths: ["/watch/dir"] }
]
expected: {
queues: {
/watch/dir: {
events: [
{ kind: "create-folder", paths: ["*"] }
]
}
}
}
}